Skip to content

Instantly share code, notes, and snippets.

@giosakti
Created July 1, 2012 05:53
Show Gist options
  • Save giosakti/3027029 to your computer and use it in GitHub Desktop.
Save giosakti/3027029 to your computer and use it in GitHub Desktop.
[Git] how to undo last commit
git commit ...
git reset --soft HEAD^
edit
git add ...
git commit -c ORIG_HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment