Git 远程仓库 更新url

git remote -v 查看现有远程仓库的地址url

1. 修改命令
git remote set-url origin <URL> 更换远程仓库地址。把<URL>更换为新的url地址。

2.先删后加
git remote rm origin
git remote add origin git@github.com:Liutos/foobar.git

原文地址:https://www.cnblogs.com/jiu0821/p/9796287.html