Skip to content

Instantly share code, notes, and snippets.

@markholland
Created July 30, 2014 05:44
Show Gist options
  • Save markholland/d01550bd1c6b49c7996e to your computer and use it in GitHub Desktop.
Save markholland/d01550bd1c6b49c7996e to your computer and use it in GitHub Desktop.
#!/bin/bash
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do
git branch --track ${branch##*/} $branch
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment