title: "git add -all" command not add files under my GitRepository/.vim/subdir/sub-subdir
body: <p>I just want to sync my .vim folder in every computer I have. Those are what I have done for that purpose: 1. cp -r ~/.vim ~/GitRepository/ 2. cd ~/GitRepository 3. git add --all 4. commit and push. But when I check my github, those files should be under the /.vim/subdir/sub-subdir are missing. And those sub-subdir became empty. What could make this happen, though I don't have a .gitignore file and suggestion in this <a href="https://stackoverflow.com/questions/14620863/git-add-all-subdirectories">link</a> do no help to me.</p>
  
  <p>And when I type git status. These note show up:</p>
  
  <pre><code>─➤  git status
  
  On branch master
  Your branch is up-to-date with 'origin/master'.
  
  Changes not staged for commit:
    (use "git add &lt;file&gt;..." to update what will be committed)
    (use "git checkout -- &lt;file&gt;..." to discard changes in working directory)
    (commit or discard the untracked or modified content in submodules)
  
  modified:   .vim/bundle/vim-snippets (modified content)
  no changes added to commit (use "git add" and/or "git commit -a")
  </code></pre>
  
  <p>what make this happen? </p>
  
  <p>=============== second edit=============
  Thank you, guys. "git add -all"actually missed the dot-file I have. But, It don't conquer my problem.</p>
  
  <p>here is what after I type git add .vim/</p>
  
  <pre><code>╰─➤  git status
  On branch master
  Your branch is up-to-date with 'origin/master'.
  
  Changes to be committed:
    (use "git reset HEAD &lt;file&gt;..." to unstage)
  
      new file:   .vim/.netrwhist
      new file:   .vim/.vimrc
      new file:   .vim/.ycm_extra_conf.py
      new file:   .vim/.ycm_extra_conf.pyc
      new file:   .vim/bundle/Vundle.vim
      new file:   .vim/bundle/YouCompleteMe
      new file:   .vim/bundle/ctrlp.vim
      new file:   .vim/bundle/molokai
      new file:   .vim/bundle/nerdtree
      new file:   .vim/bundle/tagbar
      new file:   .vim/bundle/ultisnips
      new file:   .vim/bundle/vim-airline
      new file:   .vim/bundle/vim-colorschemes
      new file:   .vim/bundle/vim-fugitive
      new file:   .vim/bundle/vim-json
      new file:   .vim/bundle/vim-snippets
      new file:   .vim/colors/molokai.vim
      new file:   .vim/colors/solarized.vim
  
  Changes not staged for commit:
    (use "git add &lt;file&gt;..." to update what will be committed)
    (use "git checkout -- &lt;file&gt;..." to discard changes in working directory)
    (commit or discard the untracked or modified content in submodules)
  
      modified:   .vim/bundle/vim-snippets (modified content)
  </code></pre>
  
  <p>It seams that git do not recognize these as a directories, why?</p>