Sourcetree pushes two repositories at the same time

Sourcetree pushes two repositories at the same time

Add remote warehouse

insert image description here

insert image description here
Note that the names cannot be the same, just choose a name to distinguish it yourself, and don't confuse yourself.

added complete

insert image description here

to push

insert image description here

  1. Choose a warehouse.
  2. Select the target branch. and check it 跟踪.
  3. push.

push complete

insert image description here
After the push is complete, you can see the branch on the remote end.

git command version

// 添加远端仓库 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)

References

Official website: https://www.sourcetreeapp.com/

Guess you like

Origin blog.csdn.net/jx520/article/details/131808493