Create an empty commit
suggest changeGenerally speaking, empty commits (or commits with state that is identical to the parent) is rejected unless you pass --allow-empty.
However, when testing build hooks, CI systems, and other systems that trigger off a commit, it’s handy to be able to easily create commits without having to edit/touch a dummy file.
git commit -m "This is a blank commit" --allow-empty
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents