我的电脑上有一个git版本库,有没有可能是当我push到一个git服务器上面的时候同时也更新到另外一个git服务器?
|
1
git remote add origin xxx
git remote add another yyy git push origin master git push another master 这样行不? |
|
airylandMay 31, 2012
2
同ls,分两次提交就行了。
|
|
3
我自己这样用
vim .git/config [remote "web"] url = ssh://server.example.org/home/ams/website.git url = ssh://other.exaple.org/home/foo/website.git |
|
poiyzyMay 31, 2012
4
这样只需要 git push web 就两个都更新了
|
|
7
|
|
ElmerZhangMay 31, 2012
8
@poiyzy 这技巧不错,收藏
|
|
112582358Jan 2, 2014
9
请问下如何添加两个不同仓库的不同分支呢?
比如说: github的master,以及gitcafe的cafe-pages |
|
112582358Jan 3, 2014
10
请问下如何添加两个不同仓库的不同分支呢?
比如说: github的master,以及gitcafe的cafe-pages 我的电脑上有一个git版本库,有没有可能是当我push到一个git服务器上面的时候同时也更新到另外一个git服务器? |
|
firstarApr 22, 2016
11
感谢!
|