-
打开终端并
cd
到目标文件 -
查看当前远程库
git remote -v
:xxx1 https://gitee.com/###/###.git (fetch) xxx1 https://gitee.com/##/###.git (push)
-
添加新的远程库
git remote add xxxx2 https://gitee.com/**/***.git
-
查看当前远程库
git remote -v
:xxx1 https://gitee.com/###/###.git (fetch) xxx1 https://gitee.com/##/###.git (push) xxx2 https://gitee.com/**/***.git (fetch) xxx2 https://gitee.com/**/***.git (push)
-
移除远程库:
git remote rm xxx2
-
查看当前远程库
git remote -v
:xxx1 https://gitee.com/###/###.git (fetch) xxx1 https://gitee.com/##/###.git (push)
网友评论