git多级同步

41 views
Skip to first unread message

anderson howl

unread,
Apr 17, 2012, 1:57:47 AM4/17/12
to GotGit
记得在群英汇还是在哪里,看到有说,将本地git提交到本地服务器,本地服务器再提交到远程服务器的,不知道怎么弄的了,希望知情人帮忙解答啊,谢谢啦

孔晓泉

unread,
Apr 17, 2012, 2:03:15 AM4/17/12
to GotGit
晕,原来是我在git权威指南上看到的,时间有点旧 我都搞混了

在 2012年4月17日 下午1:57,anderson howl <u1ma...@gmail.com> 写道:
> 记得在群英汇还是在哪里,看到有说,将本地git提交到本地服务器,本地服务器再提交到远程服务器的,不知道怎么弄的了,希望知情人帮忙解答啊,谢谢啦
>

> --
> 您收到这封邮件是因为您订阅了 Google Groups "GotGit" 邮件组。
> 向邮件组发言很简单,发送邮件到: got...@googlegroups.com 即可。
> 如果不想继续收到相关邮件,发送退订邮件到 gotgit+un...@googlegroups.com
> 您也可以通过 Web 界面访问和配置本邮件列表:
> http://groups.google.com/group/gotgit?hl=en?hl=en

孔晓泉

unread,
Apr 17, 2012, 2:13:38 AM4/17/12
to GotGit
但目前的情况是,我们写代码提交到公司内部的git服务器上,然后git服务器提交到github上,该如何实现呢?

Chunlin Zhang

unread,
Apr 17, 2012, 3:01:56 AM4/17/12
to got...@googlegroups.com
2012/4/17 孔晓泉 <u1ma...@gmail.com>:
> 但目前的情况是,我们写代码提交到公司内部的git服务器上,然后git服务器提交到github上,该如何实现呢?
你 push 两次不就好了
或者写钩子脚本之类的 http://progit.org/book/ch7-3.html

孔晓泉

unread,
Apr 17, 2012, 4:15:59 AM4/17/12
to got...@googlegroups.com
手动肯定不行阿~使用hook这个不错,谢谢提供线索~!

Jiang Xin

unread,
Apr 17, 2012, 8:00:33 AM4/17/12
to GotGit
Gitolite 配置版本库镜像,写了一个博客更新书中过时内容。见:

http://www.worldhello.net/2011/11/30/03-gitolite-mirror.html

Reply all
Reply to author
Forward
0 new messages