Files
30-seconds-of-code/git/s/create-empty-commit.md
Angelos Chalaris 5c913d20bd Reorganize snippets
2023-05-03 21:19:02 +03:00

442 B

title, type, language, tags, cover, dateModified
title type language tags cover dateModified
Create an empty commit snippet git
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"