title: Git environment for CodeIgniter project
body: <p>I'm starting of with a new CI project based on the <a href="https://github.com/philsturgeon/codeigniter-reactor" rel="noreferrer">CI 2.0 Reactor repository</a>. Because the CI2 code is still changing, I would like to keep that code fresh, the question is how (using Git).</p>
  
  <p>For the non-CI folks, the basic structure of a CI2 project looks like this:</p>
  
  <pre><code>system/  
  application/  
  index.php
  ...
  </code></pre>
  
  <p>The system directory contains the framework, index.php does the bootstrapping and application contains my project. Ideally, I would like to keep both index.php and the system folder up-to-date using Git. Another thing I would like to adhere to is name of the application folder. (You can change the path of your application folder in index.php.) Keeping the name the same makes it possible to just drop in the folder, and off you go.</p>
  
  <p>I've tried to realize this by using <a href="http://git-scm.com/docs/git-submodule" rel="noreferrer">git submodules</a> (see below), but submodules don't let you specify a directory from the target repository.</p>
  
  <pre><code>git submodule add https://github.com/philsturgeon/codeigniter-reactor.git/code-igniter/system system
  </code></pre>
  
  <p>Any clue how I can achieve this?</p>