How to remove and add remote origin from a Git repository?

Published December 22, 2020

Remove remote origin in Git

To remove a remote origin from a Git repository, you can use this command,

git remote remove origin

To add new remote origin in Git

Now to add a new origin to a Git repository, you can use this command,

git remote add origin <remote_origin_git_url>

Feel free to share if you found this useful 😃.


Share on: Facebook Twitter