我按照这个页面的教程简化了通过Git部署我的网站:http://toroid.org/ams/git-website-howto。到目前为止一切都很好,然而最近我开始使用Kohana并按照这个教程在Git中设置它:http://kohanaframework.org/3.1/guide/kohana/tutorials/git。
我的问题是:当我推送到我的Web服务器时,没有任何子模块被部署。那么,我该如何将子模块拉到我的Web服务器的工作树中呢?
如果我运行
我的问题是:当我推送到我的Web服务器时,没有任何子模块被部署。那么,我该如何将子模块拉到我的Web服务器的工作树中呢?
如果我运行
git --git-dir /srv/www/mysite.com/src/project.git --work-tree /srv/www/mysite.com/public_html submodule init
它说
fatal: working tree '/srv/www/mysite.com/public_html' already exists
Clone of 'git://github.com/kohana/auth.git' into submodule path 'modules/auth' failed`.
有人知道如何检出这些子模块吗?如果找不到方法,我就只能手动通过FTP上传它们,这并不理想。