没用过subtree(第一次听说),一直用submodule, 搜索了一下,
http://blogs.atlassian.com/2013/05/alternatives-to-git-submodule-git-subtree/ 原文作者认为subtree可以接受的缺点: In my opinion the drawbacks are acceptable: - You must learn about a new merge strategy (i.e. subtree). - Contributing code back upstream for the sub-projects is slightly more complicated. - The responsibility of not mixing super and sub-project code in commits lies with you. 2,3 对我来说有点不可接受。 submodule 是独立的一个repo,每次更新了submodule, 只要到再到主repo 的根目录,commit 一下就好了(更新一下在主repo 中的hash) 我觉得没法再简单了。 2015-02-03 19:20 GMT-08:00 Beckheng Lam <bi.ken....@gmail.com>: > Hi All, > RT. > 一直没有用过。 > 请用过的童鞋科普下。:) > > -- > 您收到此邮件是因为您订阅了Google网上论坛上的“PerlChina Mongers 讨论组”群组。 > 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到perlchina+unsubscr...@googlegroups.com。 > 要发帖到此群组,请发送电子邮件至perlchina@googlegroups.com。 > 访问此群组:http://groups.google.com/group/perlchina。 > 要查看更多选项,请访问https://groups.google.com/d/optout。 > -- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”群组。 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到perlchina+unsubscr...@googlegroups.com。 要向此群组发帖,请发送电子邮件至 perlchina@googlegroups.com。 访问此群组:http://groups.google.com/group/perlchina。 要查看更多选项,请访问 https://groups.google.com/d/optout。