access_time 4 months ago languageEnglish

Git - Change Origin Remote URL

visibility 17 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.

Want to contribute on Kontext to help others?

Learn more

More from Kontext

visibility 160
thumb_up 0
access_time 6 months ago
visibility 444
thumb_up 0
access_time 6 months ago
visibility 25
thumb_up 0
access_time 5 months ago
visibility 3246
thumb_up 0
access_time 9 months ago