Skip to content

Instantly share code, notes, and snippets.

@brianc
Created March 24, 2015 18:39
Show Gist options
  • Save brianc/4b336294725e4b505ce9 to your computer and use it in GitHub Desktop.
Save brianc/4b336294725e4b505ce9 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