Skip to main content

Changing the URI (URL) for a remote Git repository?

Setting up New Git Remote URL

––– views

How do I change the URI (URL) for a remote Git repository?

Changing Gir remote URL starts by finding out the current URL as shown:

Type the git remote command to fetch the links

git remote -v
jsx

Set new URL

git remote set-url origin new.git.url/here
jsx

New links should be seen if you run the git remote command again.