Skip to content

Instantly share code, notes, and snippets.

@piffy
Created October 21, 2018 14:25
Show Gist options
  • Save piffy/18e29995aa63845bb4fb77916fbe3937 to your computer and use it in GitHub Desktop.
Save piffy/18e29995aa63845bb4fb77916fbe3937 to your computer and use it in GitHub Desktop.
Undo git(hub) commit
$ 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