access_time 7 months ago languageEnglish
more_vert

Git - Change Origin Remote URL

visibility 20 comment 0

Code snippet

git remote set-url origin 'new_url'

The above command change the remote to a new URL.

For example, the following command changes remote git repository to project sample_proj under sample-org organization on Azure DevOps.

git remote set-url origin https://sample-org@dev.azure.com/sample-org/sample_proj/_git/sample_proj
copyright This page is subject to Site terms.
Like this article?
Share on

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts

Follow Kontext

Get our latest updates on LinkedIn.

Want to contribute on Kontext to help others?

Learn more

More from Kontext

Spark Scala: Load Data from MySQL
visibility 367
thumb_up 0
access_time 6 months ago