Skip to content

Instantly share code, notes, and snippets.

@jmccartie
Created August 2, 2010 17:08
Show Gist options
  • Save jmccartie/504964 to your computer and use it in GitHub Desktop.
Save jmccartie/504964 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
git checkout integration
for branch in `git branch | tr '*' ' '`; do
if [ "$branch" != "master" ]; then
if [ "$branch" != "integration" ]; then
git branch -D $branch;
fi;
fi;
done;
git remote update
git rebase origin/integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment