Answers for "git delete staged changes"

1

remove staged files git

git reset HEAD -- path/to/file

#To reset everything

git reset HEAD -- .
Posted by: Guest on March-19-2021
0

how to remove all files from staging area git

git rm --cached -r .
Posted by: Guest on July-28-2020
1

git discard staged changes

git reset HEAD
git checkout .
Posted by: Guest on June-02-2020
-1

remove file from stage git

git rm --cached <file>
Posted by: Guest on March-23-2020

Browse Popular Code Answers by Language