Skip to content

Instantly share code, notes, and snippets.

@ay65535
Forked from mnogu/git.sh
Last active January 2, 2016 19:19
Show Gist options
  • Save ay65535/8349718 to your computer and use it in GitHub Desktop.
Save ay65535/8349718 to your computer and use it in GitHub Desktop.
ブランチを全部落とすワンライナー from https://gist.github.com/mnogu/3844699
for i in `git branch -r | grep -Ev "HEAD|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