Skip to content

Instantly share code, notes, and snippets.

@mlsaito mlsaito/
Last active Aug 21, 2018

What would you like to do?
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
You can’t perform that action at this time.