Skip to content

Instantly share code, notes, and snippets.

@koryonik
Last active May 31, 2017 13:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koryonik/f6217575bad26baa8332b86d3902dbf6 to your computer and use it in GitHub Desktop.
Save koryonik/f6217575bad26baa8332b86d3902dbf6 to your computer and use it in GitHub Desktop.

Git cancel last commit

git reset HEAD~

Git cancel last pull

git reset --hard ORIG_HEAD 

Git edit user name or email of last commit

 git commit --amend --author="Damien ROCH <damien@foo.com>"

Git edit date of last commit

 git commit --amend --date=now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment