提交特定檔案的更改

你可以提交對特定檔案所做的更改,並使用 git add 跳過它們:

git commit file1.c file2.h

或者你可以先暫存檔案:

git add file1.c file2.h

並在以後提交它們:

git commit