Skip to content

Instantly share code, notes, and snippets.

@stephpy
Created April 10, 2013 13:44
Show Gist options
  • Save stephpy/5354740 to your computer and use it in GitHub Desktop.
Save stephpy/5354740 to your computer and use it in GitHub Desktop.
[alias]
fixup = !sh -c 'REV=$(git rev-parse $1) && git commit --fixup $@ && git rebase -i --autosquash $REV^' -
squash = !sh -c 'REV=$(git rev-parse $1) && git commit --squash $@ && git rebase -i --autosquash $REV^'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment