git clone ORGANIZATION-REPONAME.bundlecd ORGANIZATION-REPONAMEgit branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; donegit fetch --allgit pull --all# Create new repo on Git server and update origin of local repogit remote set-url origin git@github.com/XXX.git# Push all branches and tags to the new remote origingit push --allgit push --tags