GIT GUI Change Origin of Remote Repository or Source Control System

GIT GUI Change Origin of Remote Repository – Scenario:

Error: Command Failed! They all goes like these when your target GIT remote origin repository is not found. Obviously the repository is not available for some reason, and that may simply be a much needed fix like GIT GUI change origin of an outdated remote source.

When you try to fetch from remote origin in your GIT GUI.
git gui change origin - fetch from origin repository not found
fatal: repository ‘your-host:8080/tfs/…’ not found

In your GIT GUI, you try to push to your target remote origin.
git gui change origin - push to origin repository not found
fatal: repository ‘your-host:8080/tfs/…’ not found
Pushing to ‘your-host:8080/tfs/…’

Sounds and looks familiar? Yes, it happens for a reason. Probably your shared central GIT repository server is down, or it has moved or migrated to another location – most importantly the remote URL has changed. That’s the cause!

If it is a server down issue, you’ll have to ask your server administrator. If it is the case of changed or migrated URL, then you are in luck. You can fix it easily. Here is how you would tackle the issue…

 

GIT GUI Change Origin of Remote Repository – Solution:

Change your GIT GUI origin! Here’s how.

In your GIT GUI Remote Menu, choose Remove Remote > and select your ‘origin’ (it can be anything you named it earlier).

git gui change origin - remove

Now you have no remote source origin link. You cannot fetch or push anywhere.

Go ahead and add in your new remote origin. Under your GIT GUI Remote Menu, choose Add…

git gui change origin - add

Click on Add and you are done!

You are now linked and pointed to your new origin and it should work just as usual.

 

And of course, enjoy Gitting!

Also, feel free to browse through the rest of my tech produce 🙂

 



Leave a Reply

Your email address will not be published. Required fields are marked *

Ad: Vodien: Affordable, Reliable and Professional Singapore Web Hosting
Vodien: Affordable, Reliable and Professional Singapore Web Hosting