skip to main |
skip to sidebar
It seems that 'git revert' does not work the way that 'svn revert' does (reverting all uncommitted changes). I don't know if this is the proper way, but I 'reverted' my changes using 'git stash':
git stash
git stash clear
Update:
git reset --hard
3 comments:
If you don't want to throw away all changes, just some files, try `git checkout FILES...`.
@arlen Thanks for the tip!
sweet thanks.
git checkout file.txt
worked! :)
Post a Comment