Differences
This shows you the differences between two versions of the page.
docs:git:undoing_changes [2009/10/21 23:31] – created billh | docs:git:undoing_changes [2010/10/20 23:05] (current) – billh | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== undoing changes ====== | ====== undoing changes ====== | ||
+ | ===== put your working copy back the way it was before your changes ===== | ||
+ | * reset all tracked/ | ||
+ | git reset --hard head | ||
+ | </ | ||
+ | * remove any untracked files/ | ||
+ | git clean -df | ||
+ | |||
+ | you can also use this to see what would have been done | ||
+ | git clean -dn | ||
+ | </ | ||
===== External Links ===== | ===== External Links ===== | ||
* [[http:// | * [[http:// |