Tuesday, August 3, 2010

How to reset a single file in git

If you have changed a file in your working copy,but not commited yet,then you can restore that file to the version in the HEAD revision using,
git checkout HEAD hello.js

No comments:

Post a Comment