git 切换仓库地址

1、查看当前仓库地址信息

git remote -v  // 查看远端地址
git remote     // 查看远端仓库名
  • 1
  • 2

2、更换为新的地址

git remote set-url origin https://gitee.com/xx/xx.git // 新地址
  • 1
git push origin master

猜你喜欢

转载自blog.csdn.net/toume/article/details/109465492