Skip to content

Instantly share code, notes, and snippets.

@runeleaf
Created April 28, 2016 07:51
Show Gist options
  • Save runeleaf/53eb26e0a5d0fb29c06630b501c32d63 to your computer and use it in GitHub Desktop.
Save runeleaf/53eb26e0a5d0fb29c06630b501c32d63 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