Jan 22, 2013

Discard changes in git

Posted Jan 22, 2013
If you want to revert your changes made in a given directory with git versioning, execute this command:

git clean -df & git checkout -- .

This will also handle staged and unstaged files.

No comments:

Post a Comment