This topic created in 4010 days ago, the information mentioned may be changed or developed.
例如,用 git 管理一个网页,该仓库中有开发文档,这时,在服务器上想克隆这个仓库做网站,以便本地修改后可在服务器上直接 git pull 操作,但又不想开发文档也克隆在服务器上,应该如何处理?
4 replies • 2015-11-30 14:24:55 +08:00
 |
|
拆 repo 。
|
 |
|
拆开然后 submodule 咯
|
 |
|
你看 android 的代码有好几百个 git 库呢
|
 |
|
把文档拆到 submodule 里?这样 clone 的时候默认不会 clone 下来,但是开发时又可以保持一致
|