Skip to main content

Posts

Showing posts from September, 2016

How to update git remote origin URL

OK, whatever way you are passionate about when it comes to updating your remote origin URLs, I have got you covered!
Option 1: Go to config file in /.git folder.      change url field from      url = ssh://git@<old-url> to url = ssh://git@<new-url>
Option 2: Go to your repo location, on cmd give git remote set-url origin ssh://git@<new-url>. 
Option 3: Go to your repository in source tree, click on settings, on Remotes tab in repository settings box, you can select the origin and edit.

What is life without options!!