执行 git commit 命令时,带上 --allow-empty 选项就可以进行空提交。

git commit --allow-empty -m "Empty Commit"

发表评论