access_time 2 months ago languageEnglish

Git - Change Origin Remote URL

visibility 12 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
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 or Twitter.

Want to contribute on Kontext to help others?

Learn more

More from Kontext

Spark Scala: Load Data from MySQL
visibility 27
thumb_up 0
access_time 2 months ago
visibility 1700
thumb_up 0
access_time 7 months ago