Thank you for your reply, Han. The problem that I have with ‘—allow-empty’ is that the resulting commit is not associated with any particular file. I tried ‘git commit —allow-empty myfile.txt’ but the file argument is effectively ignored. ‘git log myfile.txt’ does not show the empty commit. > On Sep 22, 2024, at 10:48 PM, 韩仰 <hanyang.tony@xxxxxxxxxxxxx> wrote: > > You can use the --allow-empty option in git-commit to allow > such commits. > > Thanks, > Han