Thursday, January 8, 2015

How to change the URL of git remote origin

URL of the current remote origin can be simply changed with the command:
git remote set-url origin <new_git_url>
<new_git_url> could be any valid remote git url. Like
ssh://user@host:1234/srv/git/example
or
https://github.com/rtbkit/rtbkit.wiki.git
etc






No comments:

Post a Comment