Skip to content

Instantly share code, notes, and snippets.

@amatsuda
Created October 23, 2012 15:41
Show Gist options
  • Select an option

  • Save amatsuda/3939551 to your computer and use it in GitHub Desktop.

Select an option

Save amatsuda/3939551 to your computer and use it in GitHub Desktop.
#!/bin/zsh
for b in `git branch -r | grep "^ origin" | cut -c 10- | fgrep -v HEAD | grep -v master`; do
git checkout -t origin/${b}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment