Saya melakukan git commit -m "message"
seperti ini:
> 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")
Tetapi setelah itu, ketika saya melakukan git status
itu menunjukkan file yang dimodifikasi yang sama:
> 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")
Apa yang saya lakukan salah?
git commit -am "save arezzo files"
untuk secara otomatis menambahkan semua perubahan (wrt. Gitignore). Anda mungkin ingin menambahkan hanya file / dir tertentu:git add file.src