For a specific file use:
git checkout path/to/file/to/revert For all unstaged files use:
git checkout -- . Make sure to include the period at the end.
Read full article from How do you discard unstaged changes in git? - Stack Overflow
For a specific file use:
git checkout path/to/file/to/revert For all unstaged files use:
git checkout -- . Make sure to include the period at the end.
Read full article from How do you discard unstaged changes in git? - Stack Overflow
No comments:
Post a Comment