Lorsque je fais un git commit -a
, je vois ce qui suit:
# 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/
Que signifient ces fichiers non suivis? Tous les changements ont en effet été suivis. Je ne comprends pas pourquoi git me prévient des fichiers non suivis ici.
MODIFIER :
Ok, je vois beaucoup de réponses confuses. C'est ce qui se passe après git commit -a
cela.
# On branch master
nothing to commit (working directory clean)
Comme vous pouvez le voir, il n'y a RIEN autre que ces quatre fichiers pour lesquels des modifications ont été appliquées.
Ma question devrait être reformulée comme suit: Pourquoi git m'avertit-il des fichiers non suivis alors que toutes les modifications de ce commit ont été suivies?
En d'autres termes, l'avertissement non suivi dans le message git commit est-il inutile ?
(use "git add <file>..." to include in what will be committed)