Monday, November 1, 2010

Revert a file in Git

To revert a file with uncommitted changes to the current version in the repo do:

git checkout -- filename


source: http://norbauer.com/notebooks/code/notes/git-revert-reset-a-single-file

No comments:

Post a Comment