Skip to content

Instantly share code, notes, and snippets.

@imajes
Created October 21, 2013 23:26
Show Gist options
  • Save imajes/7092549 to your computer and use it in GitHub Desktop.
Save imajes/7092549 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
@imajes
Copy link
Author

imajes commented Oct 21, 2013

put this file in your user home, in bin. make it executable, then run:

git all-branches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment