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
- prune all branches:
git remote prune origin
- show branches to prune:
- Push to master
git push -u origin/master
git checkout -b branchname_here
git remove -v
To delete the local branch use one of the following:
git branch -d branch_name
git branch -D branch_name
git push -d origin <branch_name>
- http://www.fizerkhan.com/blog/posts/Clean-up-your-local-branches-after-merge-and-delete-in-GitHub.html
- https://stackoverflow.com/questions/2432764/how-to-change-the-uri-url-for-a-remote-git-repository
- https://help.github.com/en/github/using-git/removing-a-remote
- https://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-locally-and-remotely?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa