Skip to content

Instantly share code, notes, and snippets.

@brianc
Created March 12, 2015 00:44
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 brianc/3f9d57d2e728b4d3a304 to your computer and use it in GitHub Desktop.
Save brianc/3f9d57d2e728b4d3a304 to your computer and use it in GitHub Desktop.
#!/bin/bash
git fetch
git rebase origin/master
git rebase -i HEAD~`git log origin/master.. --pretty=oneline | wc -l | sed -e 's/^[ \t]*//'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment