I'm relatively new to git SCM. By accident, I discovered that it is possible to stage unmodified files.
After making minor changes to a broad file set, I checked status (git status
) then manually staged what I thought was my change set...
git add file1 file2 file3 file4 file5
...only to realize prior to committing that file2
had not been modified.
I removed file2
from the staged set and proceeded with my commit, but now I'm wondering what purpose might there be to committing unmodified file(s)?