Skip to content

Instantly share code, notes, and snippets.

@bluej100
Created March 7, 2014 19:40
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 bluej100/9418376 to your computer and use it in GitHub Desktop.
Save bluej100/9418376 to your computer and use it in GitHub Desktop.
git superpull
alias superpull='git checkout master; git pull; for branch in $(git branch --no-merged); do git rebase -q master $branch; done; git checkout master; for branch in $(git branch --merged | grep -v master); do git branch -d $branch; done; echo "Done."'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment