Answers for "how to view unstaged changes in git"

3

discard unstaged changes git

#For all unstaged files in current working directory use:
git checkout -- .
#For a specific file use:
git checkout -- path/to/file/to/revert
Posted by: Guest on October-09-2020
0

remove frmo staging git

git reset HEAD -- filename
Posted by: Guest on May-06-2020
-1

remove file from stage git

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

Browse Popular Code Answers by Language