
1 messense 2012-05-31 11:13:08 +08:00 git remote add origin xxx git remote add another yyy git push origin master git push another master 这样行不? |
2 airyland 2012-05-31 11:29:45 +08:00 同ls,分两次提交就行了。 |
3 poiyzy 2012-05-31 11:40:00 +08:00 我自己这样用 vim .git/config [remote "web"] url = ssh://server.example.org/home/ams/website.git url = ssh://other.exaple.org/home/foo/website.git |
4 poiyzy 2012-05-31 11:40:41 +08:00 这样只需要 git push web 就两个都更新了 |
6 xell 2012-05-31 12:29:28 +08:00 @poiyzy 非常感谢,这种小细节帮了我大忙! |
7 panxianhai OP |
8 ElmerZhang 2012-05-31 13:25:39 +08:00 @poiyzy 这技巧不错,收藏 |
9 112582358 2014-01-02 12:29:43 +08:00 请问下如何添加两个不同仓库的不同分支呢? 比如说: github的master,以及gitcafe的cafe-pages |
10 112582358 2014-01-03 00:32:58 +08:00 请问下如何添加两个不同仓库的不同分支呢? 比如说: github的master,以及gitcafe的cafe-pages 我的电脑上有一个git版本库,有没有可能是当我push到一个git服务器上面的时候同时也更新到另外一个git服务器? |
11 firstar 2016-04-22 16:02:06 +08:00 感谢! |