undoing changes
put your working copy back the way it was before your changes
- reset all tracked/known files
git reset --hard head
- remove any untracked files/directories that aren't known (known like listed in a .gitignore file)
git clean -df you can also use this to see what would have been done git clean -dn
External Links
* undoing