I have some files
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
And I want to commit files 1-5 only, so I have added files 1-5
Changes to be committed:
(use “git reset HEAD …” to unstage)
1, 2, 3, 4, 5
and leave files 6-10 in changes “not staged for commit” list.
But then, when I want to commit using
git commit -a
I also see those files 6-10
Changes to be committed:
(use “git reset HEAD …” to unstage)
I think when I have manually added files 1-5, files 6-10 won’t be also added in “changes to be committed” list right?
Adds in files as well as committing. It is equivalent to:
From the man page:
You just want:
To commit only the files you have staged.