Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've been using http://toroid.org/ams/git-website-howto for several recent projects as it makes deployments drop dead simple, however I've recently hit a stumbling block.

I'm working on a project that includes multiple submodules and the standard deployment code doesn't seem to include them in its checkout. I'm guessing it's a simple case of adding an extra flag or call, but I have no idea what and where.

If anyone can help, I'll be mighty grateful.

share|improve this question
Have you added the .gitmodules file to the repository? –  julkiewicz Apr 21 '11 at 13:27
Excuse my naivety, to which repository? I followed this tutorial to set up my project, so I'm assuming it was automatically created? kohanaframework.org/3.1/guide/kohana/tutorials/git –  Dachande663 Apr 21 '11 at 13:57
I'm not a git submodule expert, however I used it once or twice. From what I recall creating submodules in a repository causes .gitmodule file to appear. It's basically just like .gitignore and the like - a configuration file that describes the submodules that you wish to have linked with the repo. It should live within the main repository. –  julkiewicz Apr 21 '11 at 14:04
I have a .gitmodules on both my local machine and server, but cannot do a git submodules init etc as the server is not a git repo but just a checkout :/ –  Dachande663 Apr 21 '11 at 14:29
A repo checkout? But git doesn't have anything like repo checkout. Every working copy is a valid repository. –  julkiewicz Apr 21 '11 at 14:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.