Hice algo git commit -m "message"
como esto:
> git commit -m "save arezzo files"
# On branch 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)
#
# modified: arezzo.txt
# modified: arezzo.jsp
#
no changes added to commit (use "git add" and/or "git commit -a")
Pero luego, cuando lo hago git status
, muestra los mismos archivos modificados:
> git status
# On branch 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)
#
# modified: arezzo.txt
# modified: arezzo.jsp
#
no changes added to commit (use "git add" and/or "git commit -a")
¿Qué estoy haciendo mal?
git commit -am "save arezzo files"
para agregar automáticamente todos los cambios (wrt .gitignore). Es posible que desee agregar solo archivos /git add file.src