git remote set-url origin new.git.url/here
- Create github repo
git remote set-url origin new.git.url/here
git init
in repo to migrate- Prune/Cleanup the local references to remote branch
- show branches to prune:
git remote prune origin --dry-run
- show branches to prune:
- prune all branches:
git remote prune origin