megacolorboy

Back

Published on April 10th, 2021

Git

How to update your Git remote origin URL?

Did you make a typo while typing out your Git remote origin URL? Is it pointing towards the wrong repository?You can easily update it using the following command:Hope you found this useful!

1 minute read

Did you make a typo while typing out your Git remote origin URL? Is it pointing towards the wrong repository?

You can easily update it using the following command:


git remote set-url origin https://example.com/username/repository.git

Hope you found this useful!