Created
August 8, 2014 05:43
git checkout every remote branch (so you can push them all to a different repo) using git push newRepo --all
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for branch in $(git for-each-ref --format='%(refname:short)' refs/remotes/origin | grep -v HEAD | sed 's:^origin/::'); do git checkout "$branch"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment