When I started learning git recently, I thought it would be a good idea to put all my .vim contents on Github (my vimrc file and the scripts I use), commiting then when they work well, and doing resets when they don't.
Everything worked fine until I did a change in a script. It's not a script made by me, it is a script I installed via Vundle (to be precise, the vim-trailing-whitespace). I just change some color name in the script, and everytime I do a git status
, it shows:
andre@andre:~/.vim$ git status
No ramo master
Changes not staged for commit:
(utilize "git add <arquivo>..." para atualizar o que será submetido)
(utilize "git checkout -- <arquivo>..." para descartar mudanças no diretório de trabalho)
(submeter ou descartar o conteúdos não monitorados ou modificados em submódulos)
modificado: bundle/vim-trailing-whitespace (conteúdo modificado)
nenhuma modificação adicionada à submissão (utilize "git add" e/ou "git commit -a")
After a git add .
or git add -A
I receive no return (normal, I guess).
But after a git commit -m "Improved mapping, included saving with sudo tee in map, fixed indent lines"
I receive the same:
andre@andre:~/.vim$ sudo git commit -m "Improved mapping, included saving with sudo tee in map, fixed indent lines"
No ramo master
Changes not staged for commit:
modificado: bundle/vim-trailing-whitespace (conteúdo modificado)
nenhuma modificação adicionada à submissão
So, why my git add .
is not adding to stage? I have some clues, but no answer.
EDIT:
When I ran a git diff
I get:
diff --git a/bundle/vim-trailing-whitespace b/bundle/vim-trailing-whitespace
--- a/bundle/vim-trailing-whitespace
+++ b/bundle/vim-trailing-whitespace
@@ -1 +1 @@
-Subproject commit 478b217d299b6f5938b43a4929d6bb0907cc3a56
+Subproject commit 478b217d299b6f5938b43a4929d6bb0907cc3a56-dirty
Why these subprojects are there? I never "made" them, I just install scripts with Vundle.