$git remote -v #查看当前远端仓库
origin git@git.coding.net:user/project.git (fetch)
origin git@git.coding.net:user/project.git (push)
github git@github.com:user/repo.git (fetch)
github git@github.com:user/repo.git (push)
$git remote add both git@git.coding.net:user/project.git
# 添加一个名为 both 的远端
$git remote set-url --add --push both git@git.coding.net:user/project.git
# 为其添加 push 到 Coding 的 SSH 地址
$git remote set-url --add --push both git@github.com:user/repo.git
# 为其添加 push 到 GitHub 的 SSH 地址
可以替换为https
4963

被折叠的 条评论
为什么被折叠?



