Created
November 19, 2012 16:11
-
-
Save fuzzmz/4111521 to your computer and use it in GitHub Desktop.
Revisions
-
fuzzmz created this gist
Nov 19, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ git reset 56e05fced #resets index to former commit; replace '56e05fced' with your commit code git reset --soft HEAD@{1} #moves pointer back to previous HEAD git commit -m "Revert to 56e05fced" git reset --hard #updates working copy to reflect the new commit