empty commit

A commit whose snapshot is identical to its parent's, which Git only makes when you pass --allow-empty.

In more detail

It changes no files but still gets its own ID, author and message. Tutorials and scripts use it to create a commit quickly, for example to trigger a build or test a push.

Example

git commit --allow-empty -m 'Second'

Related terms

Taught in

References