Say there are several files modified and I just want one files committed each time. How to do that? Given an example with status looks like below. Thanks!!
Ex:
> git status
# modified: file01.txt
# modified: file02.txt
# modified: file03.txt
# modified: file04.txt
# modified: file05.txt
There are a few ways, but the simplest is probably:
Any paths you list after the commit command will be committed regardless of whether they’re staged to be committed. Alternatively, you can stage each one, and then commit: