How to remove origin link in git?

by giovanny.lueilwitz , in category: Third Party Scripts , 4 months ago

How to remove origin link in git?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by elisha_langworth , 4 months ago

@giovanny.lueilwitz 

To remove an origin link in Git, you can use the following command:

1
git remote rm origin


This command will remove the origin link from your Git repository. You can then set a new origin link by using the following command:

1
git remote add origin <new_origin_url>


Replace <new_origin_url> with the URL of the new origin repository that you want to set.