Skip to content

Instantly share code, notes, and snippets.

@othree
Created March 10, 2017 04:52
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 othree/d9cefd1c4b5bb667d2690330231d5fff to your computer and use it in GitHub Desktop.
Save othree/d9cefd1c4b5bb667d2690330231d5fff 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#remotes/origin/} $branch
done
@othree
Copy link
Author

othree commented Mar 10, 2017

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