Change remote url of your Git repository
suggest changeYou may want to do this if the remote repository has moved. The command for changing the remote URL is:
git remote set-url
It takes two arguments: an existing remote name (origin, upstream) and the URL.
Check your current remote URL:
git remote -v
origin https://bitbucket.com/develop/myrepo.git (fetch)
origin https://bitbucket.com/develop/myrepo.git (push)
Change your remote URL:
git remote set-url origin https://localserver/develop/myrepo.git
Check the remote URL again:
git remote -v
origin https://localserver/develop/myrepo.git (fetch)
origin https://localserver/develop/myrepo.git (push)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents