Last active
June 8, 2018 15:16
-
-
Save Algogator/9a0ab8a247155ebd5bf1779c286f2430 to your computer and use it in GitHub Desktop.
Undo
This file contains 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 characters
git rm -r --cached | |
git push origin +dd61ab32^:master | |
git reset HEAD^ --hard | |
git push origin -f | |
git reset HEAD^ | |
Undo a commit and Redo | |
$ git commit -m "Something terribly misguided" (1) | |
$ git reset HEAD~ (2) | |
<< edit files as necessary >> (3) | |
$ git add ... (4) | |
$ git commit -c ORIG_HEAD (5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment