Skip to content

Instantly share code, notes, and snippets.

@mnogu
Created October 6, 2012 11:41
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save mnogu/3844699 to your computer and use it in GitHub Desktop.
Save mnogu/3844699 to your computer and use it in GitHub Desktop.
for i in `git branch -r|grep -v HEAD|grep -v master|sed 's:origin/::g'`
do
git checkout --track -b $i origin/$i
done
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment