git-切换远程仓库

1. 查看远程仓库地址

git remote -v

2. 切换远程仓库地址

(1)直接切换

git remote set-url origin URL   //URL为新地址

(2)先删除后添加

git remote rm origin   //删除现有远程仓库
git remote add origin url   //添加新远程仓库


参考:https://blog.csdn.net/yihanzhi/article/details/78801027

原文地址:https://www.cnblogs.com/zwh1993/p/13156253.html