Skip to content

Instantly share code, notes, and snippets.

@scottnath
Created April 22, 2014 20:17
Show Gist options
  • Select an option

  • Save scottnath/11192834 to your computer and use it in GitHub Desktop.

Select an option

Save scottnath/11192834 to your computer and use it in GitHub Desktop.
Git: Set up remote branches locally
for b in `git branch -r | grep -v -- '->'`; do git branch --track ${b##origin/} $b; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment