title: How to track untracked content?
body: <p>See below the solid line for my original question.</p>
  
  <p>I have a folder in my local directory that is untracked. When I run <code>git status</code>, I get:</p>
  
  <pre><code>Changed but not updated:
  modified:   vendor/plugins/open_flash_chart_2 (modified content, untracked content)
  </code></pre>
  
  <p>When I type <code>git add vendor/plugins/open_flash_chart_2</code> then try <code>git status</code> again, it still says untracked. What's going on?  </p>
  
  <hr>
  
  <p>Here is a simple summary of my latest half hour:</p>
  
  <ul>
  <li><p>Discovered that my Github repo is not tracking my <code>vendor/plugins/open_flash_chart_2</code> plugin. Specifically, there's no content and it's showing a <b>green arrow</b> on the folder icon.</p></li>
  <li><p>Tried <code>git submodule init</code></p>
  
  <pre><code>No submodule mapping found in .gitmodules for path 'vendor/plugins/open_flash_chart_2'
  </code></pre></li>
  <li><p>Tried <code>git submodule add git://github.com/korin/open_flash_chart_2_plugin.git vendor/plugins/open_flash_chart_2</code></p>
  
  <pre><code>vendor/plugins/open_flash_chart_2 already exists in the index
  </code></pre></li>
  <li><p><code>git status</code>  </p>
  
  <pre><code>modified: vendor/plugins/open_flash_chart_2 (untracked content)
  </code></pre></li>
  <li><p>Hunted for any file named <code>.gitmodules</code> in my repository/local directory but couldn't find one.</p></li>
  </ul>
  
  <p>What do I have to do to <b>get my submodules working</b> so git can start tracking properly?</p>
  
  <hr>
  
  <p>This may be unrelated (I include it in case it helps), but every time I type <code>git commit -a</code> rather than my usual <code>git commit -m "my comments"</code>, it throws up an error:</p>
  
  <pre><code>E325: ATTENTION
  Found a swap file by the name ".git\.COMMIT-EDITMSG.swp"
           dated: Thu Nov 11 19:45:05 2010
       file name: c:/san/project/.git/COMMIT_EDITMSG
        modified: YES
       user name: San   host name: San-PC
      process ID: 4268
  While opening file ".git\COMMIT_EDITMSG"
           dated: Thu Nov 11 20:56:09 2010
    NEWER than swap file!  
  Swap file ".git\.COMMIT_EDITMSG.swp" already exists!
  [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
  Swap file ".git\.COMMIT_EDITMSG.swp" already exists!
  [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
  </code></pre>
  
  <p>I am a complete newbie at Github and despite trying to go through the documentation, I'm a bit stumped by these particular problems. Thank you.</p>