Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== undoing changes ====== ===== put your working copy back the way it was before your changes ===== * reset all tracked/known files<code> git reset --hard head </code> * remove any untracked files/directories that aren't known (known like listed in a .gitignore file)<code> git clean -df you can also use this to see what would have been done git clean -dn </code> ===== External Links ===== * [[http://learn.github.com/p/undoing.html|undoing]] docs/git/undoing_changes.txt Last modified: 2010/10/20 23:05by billh