Git: Change remote URL

There is some way to change the remote URL in Git.

1. The git command
git remote set-url origin <URL>
2. Remove the old URL then add new one
git remote rm origin
git remote add origin <URL>
3. Edit the config file

Comments