Skip to content

Instantly share code, notes, and snippets.

@caius
Created August 26, 2009 08:36
Show Gist options
  • Save caius/175400 to your computer and use it in GitHub Desktop.
Save caius/175400 to your computer and use it in GitHub Desktop.
for i in `git branch -r`; do j=`echo $i|sed 's/\//_/'`; git checkout -b $j --track $i; done
# git checkout -b origin_master --track origin/master
# git checkout -b origin_topic_branch --track origin/topic_branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment