Create an empty commit

Isabelle Viktoria Maciohsek · Git, Commit · Apr 13, 2021

Creates an empty commit.

  • Use git commit --allow-empty -m <message> to create an empty commit with the provided <message>.
git commit --allow-empty -m <message>
git commit --allow-empty -m "Empty commit"
# Creates an empty commit with the message "Empty commit"

Recommended snippets