Skip to content

Instantly share code, notes, and snippets.

@dstegelman
Created February 1, 2015 01:26
Show Gist options
  • Save dstegelman/4df6cc342612dea94c7e to your computer and use it in GitHub Desktop.
Save dstegelman/4df6cc342612dea94c7e to your computer and use it in GitHub Desktop.
Check out all branche
#!/bin/bash
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do
git branch --track ${branch#remotes/origin/} $branch
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment