Files
30-seconds-of-code/snippets/create-empty-commit.md
2022-05-04 19:36:40 +03:00

498 B

title, tags, expertise, author, cover, firstSeen, lastUpdated
title tags expertise author cover firstSeen lastUpdated
Create an empty commit commit beginner maciv blog_images/colorful-plastic.jpg 2021-04-04T20:55:26+03:00 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"