Skip to content

Instantly share code, notes, and snippets.

@Jonty
Last active January 11, 2018 11:55
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jonty/fcff00bae38d74caf2c28fe72c9269de to your computer and use it in GitHub Desktop.
Save Jonty/fcff00bae38d74caf2c28fe72c9269de to your computer and use it in GitHub Desktop.
A git alias to rebase all commits added on the current branch
[alias]
rebase-branch = !git rebase -i --autosquash $(git merge-base --fork-point origin/master HEAD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment