Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mlsaito
Last active August 21, 2018 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlsaito/dcca0c95cdff51b06fa8f3c2a20cbefa to your computer and use it in GitHub Desktop.
Save mlsaito/dcca0c95cdff51b06fa8f3c2a20cbefa to your computer and use it in GitHub Desktop.
Git Cheatsheet

Fix Previous Commits

$ git commit --fixup=8a465186
$ git rebase -i --autosquash 8a465186~1

Cherry Picking

$ git cherry-pick branch #last commit
$ git cherry-pick branch~1 #second to the last commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment