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 link do no help to me.
And when I type git status. These note show up:
─➤  git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." 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")
what make this happen?
=============== second edit============= Thank you, guys. "git add -all"actually missed the dot-file I have. But, It don't conquer my problem.
here is what after I type git add .vim/
╰─➤  git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
  (use "git reset HEAD <file>..." 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 <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)
  (commit or discard the untracked or modified content in submodules)
    modified:   .vim/bundle/vim-snippets (modified content)
It seams that git do not recognize these as a directories, why?
 
     
     
     
    