Last active
February 6, 2019 20:21
-
-
Save Sher-Chowdhury/ab6c4bfe19ad165a0a304f01cc1c8759 to your computer and use it in GitHub Desktop.
push all branches to a new empty github/bitbucket repo
This file contains 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
git remote set-url origin [email protected]:xxxx/xxxx.git | |
for branch in $(git branch -r | grep -v HEAD | cut -d'/' -f2) ; do git checkout $branch ; git push --set-upstream origin $branch ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment