Skip to content

Instantly share code, notes, and snippets.

@jsvnm
Created November 16, 2012 12:56
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 jsvnm/4087131 to your computer and use it in GitHub Desktop.
Save jsvnm/4087131 to your computer and use it in GitHub Desktop.
make local branches that track the ones in remote (origin)
for r in `git branch -r | grep -v HEAD`; do b=${r#origin/}; git branch --track $b $r; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment