Git Move Repo
-
Clone the project from old repo url
git clone <old_repo_url> -
Pull all branches
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done git fetch --all git pull --all -
Change remote to new repo url
git remote set-url origin <new_repo> -
Push all to new repo url
git push --all git push --tags