Zrobiłem coś git commit -m "message"
takiego:
> 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")
Ale potem, kiedy to robię git status
, pokazuje te same zmodyfikowane pliki:
> 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")
Co ja robię źle?
git commit -am "save arezzo files"
do automatycznego dodawania wszystkich zmian (wrt .gitignore). Możesz dodać tylko określone pliki / katalogi:git add file.src