Skip to content

Instantly share code, notes, and snippets.

@caius
Created July 6, 2009 12:21
Show Gist options
  • Save caius/141398 to your computer and use it in GitHub Desktop.
Save caius/141398 to your computer and use it in GitHub Desktop.
[alias]
rebase-on-master = !sh -c \"git rebase -i HEAD~`git log --format=oneline master.. | wc -l | awk '{ print $1 }'`\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment