Borrowed from https://gist.github.com/xtream1101/fd79f3099f572967605fab24d976b179
Here we will restore the repo from the bundle and create a new remote origin that will contain all brnaches and tags
git clone vuejs_vue.bundle
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done git fetch --all git pull --all
git remote set-url origin git@github.com/xtream1101/test-backup.git
git push --all git push --tags