Sourcetree 同时推送两个仓库

添加远端仓库

在这里插入图片描述

在这里插入图片描述
注意名称不能相同 ,自己取个名子区分一下,别把自己搞懵就行了。

添加完成

在这里插入图片描述

推送

在这里插入图片描述

  1. 选择仓库。
  2. 选择目标分支。并勾选跟踪
  3. 推送。

推送完成

在这里插入图片描述
推送完成后,可以看到远端上的分支了。

git 命令版

// 添加远端仓库 1
git remote add gitee-origin [email protected]:jerry/test.git
// 添加远端仓库 2
git remote add gitlab-origin http://127.0.0.1/wechat/test.git

// 查看
git remote -v
gitee-origin    [email protected]:jerry/test.git (fetch)
gitee-origin    [email protected]:jerry/test.git (push)
gitlab-origin   http://127.0.0.1/wechat/test.git (fetch)
gitlab-origin   http://127.0.0.1/wechat/test.git (push)

参考资料

官网:https://www.sourcetreeapp.com/

猜你喜欢

转载自blog.csdn.net/jx520/article/details/131808493