J'ai fait git commit -m "message"
ça comme ça:
> 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")
Mais après, quand je le fais, git status
il montre les mêmes fichiers modifiés:
> 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'est-ce que je fais mal?
git commit -am "save arezzo files"
pour ajouter automatiquement toutes les modifications (wrt .gitignore). Vous voudrez peut-être ajouter uniquement des fichiers / répertoires spécifiques:git add file.src