- Open terminal.
 - Change the current working directory to your local project.
 - Use the command (this will list the current remote URL):
 - git remote -v
 - Then issue the following command (this will change the remote URL):
 - git remote set-url origin https://your-git-rep-url.git/
 - Verify that the remote URL has changed:
 - git remote -v
 
Taken from, GitHub: Changing a remote's URL