I am using git checkout . which discards all changes from the working directory. It matters if you are not at the root of the repository.
This command does not delete newly created files, which is usually good. If you need to do this, you can also use git clean .
Charles Bailey Jun 24 '10 at 7:10 2010-06-24 07:10
source share