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
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
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。