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

posted @ 2020-06-18 10:34  橘子香气  阅读(2777)  评论(0编辑  收藏  举报