您可以使用以下命令提交对特定文件的更改,并跳过暂存文件git add:
git commit file1.c file2.h
或者,您可以首先暂存文件:
git add file1.c file2.h
稍后再提交:
git commit