本地连接的远程库更改为其他的远程库

462 阅读1分钟

查看当前远程仓库的地址

git remote -v

移除当前地址

git remote remove origin 

添加新的地址

git remote add origin <新的远程库地址>