Files
30-seconds-of-code/snippets/create-empty-commit.md
Isabelle Viktoria Maciohsek 2c0ba554cd Add commit variants
2021-04-04 20:55:26 +03:00

351 B

title, tags
title tags
Create an empty commit commit,beginner

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"