Quando faço um git commit -a, vejo o seguinte:
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch better_tag_show
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: ../assets/stylesheets/application.css
# modified: ../views/pages/home.html.erb
# modified: ../views/tags/show.html.erb
# modified: ../../db/seeds.rb
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# ../assets/stylesheets/
# ../views/pages/
O que esses arquivos não rastreados significam? Todas as mudanças foram de fato rastreadas. Eu não entendo porque o git está me avisando sobre arquivos não rastreados aqui.
EDITAR :
Ok, vejo muitas respostas confusas. Isso é o que acontece depois git commit -adisso.
# On branch master
nothing to commit (working directory clean)
Como você pode ver, não há NADA além desses quatro arquivos que tiveram as alterações aplicadas.
Minha pergunta deve ser reformulada da seguinte forma: Por que o git está me avisando sobre arquivos não rastreados quando todas as alterações neste commit foram rastreadas?
Em outras palavras, o aviso não rastreado na mensagem git commit é desnecessário ?
(use "git add <file>..." to include in what will be committed)