Update the upstream URL of a Git repository.

Once you have been working enough with Git, you will run into a problem with needed to change the upstream Git URL. One reason for this can be because your employer/client has changed the location where the repository is hosted.

If you’re using SSH, use this command:

If you’re using HTTP, use this command:



About the Author Harrison Brock

Harrison Brock is a software engineer that focuses on Full Stack web development

follow me on: