Files
30-seconds-of-code/snippets/create-empty-commit.md
2023-04-28 22:15:54 +03:00

428 B

title, type, tags, cover, dateModified
title type tags cover dateModified
Create an empty commit snippet
commit
colorful-plastic 2021-04-13T21:10:59+03:00

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"