Committing changes in specific files
suggest changeYou can commit changes to specific files without a separate git add. Naming paths commits the working-tree contents of those files only; other staged changes stay uncommitted:
git commit file1.c file2.h
Or you can first stage the files:
git add file1.c file2.h
and commit them later:
git commit
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents