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

相关文章:

  • 2021-11-26
  • 2021-05-22
  • 2022-12-23
  • 2022-02-16
  • 2021-11-24
  • 2021-12-21
  • 2021-06-17
猜你喜欢
  • 2021-12-18
  • 2021-08-10
  • 2021-12-18
  • 2022-02-18
  • 2022-12-23
相关资源
相似解决方案