Created
October 21, 2018 14:25
-
-
Save piffy/18e29995aa63845bb4fb77916fbe3937 to your computer and use it in GitHub Desktop.
Undo git(hub) commit
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 characters
$ git commit -m "Una cosa orrenda" | |
$ git reset HEAD~ | |
<< Modifica file >> | |
$ git add ... | |
$ git commit -c ORIG_HEAD | |
git push origin master --force #Opzionale |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment