Cuando hago una git commit -a, veo lo siguiente:
# 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/
¿Qué significan esos archivos sin seguimiento? De hecho, se ha realizado un seguimiento de todos los cambios. No entiendo por qué git me advierte sobre archivos sin seguimiento aquí.
EDITAR :
Ok, veo muchas respuestas confusas. Esto es lo que pasa después de git commit -aesto.
# On branch master
nothing to commit (working directory clean)
Como puede ver, no hay NADA más que esos cuatro archivos a los que se les aplicaron cambios.
Mi pregunta debería reformularse de la siguiente manera: ¿Por qué git me advierte sobre los archivos sin seguimiento cuando se ha realizado un seguimiento de todos los cambios en esta confirmación?
En otras palabras, ¿ es innecesaria la advertencia sin seguimiento en el mensaje de confirmación de git ?
(use "git add <file>..." to include in what will be committed)