Answers for "git commit staged files"

0

how to see staged files in git

git diff --name-only --cached
Posted by: Guest on March-09-2021
0

git ignore staged files

#FIRST
git rm -r --cached .
git add .

#THEN
git commit -am "Remove ignored files"

#ONELINE
git rm -r --cached . && git add . && git commit -am "Remove ignored files"
Posted by: Guest on October-01-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language