13 ms·You don't need to change config files. `git remote rm origin` `git remote add origin new-url`by galgalesh 6y agoYou don't need to change config files. `git remote rm origin` `git remote add origin new-url`lorenzhs 6y ago`git remote set-url origin new-url`tux1968 6y agoAll those commands do is change the .git/config file. Such commands are great for scripting, but really don't need to be learned if you're comfortable editing simple config files with your preferred editor.