执行 git commit
命令时,带上 --allow-empty
选项就可以进行空提交。
git commit --allow-empty -m "Empty Commit"
版权属于:wshon
本文链接:https://blog.wshon.com/2022/10/git-empty-commit.html
转载时须注明出处及本声明
执行 git commit
命令时,带上 --allow-empty
选项就可以进行空提交。
git commit --allow-empty -m "Empty Commit"
版权属于:wshon
本文链接:https://blog.wshon.com/2022/10/git-empty-commit.html
转载时须注明出处及本声明
最新回复