Changing the URL of a Git Repository

GIT, Quick Tip

Want to know how to change the URL of your Git repository? It’s quite simple:

git remote set-url origin git@your-new-url.com/location-of.git


Michiel Gerritsen
About the author

Michiel Gerritsen

Connect on LinkedIn

Founder of Control Alt Delete, a Magento agency specialised in testing, CI/CD and checkout integrations. Working with Magento since 2015, and board member of Mage-OS.

Missing anything?
What are you missing? X
Thank you for your feedback!