---
title: "Discussion on \"How to create a Git commit without a message?\" | Hashnode"
description: "Discussion on \"How to create a Git commit without a message?\". Solution\nHere it is:\ngit commit --allow-empty-message -m \"\"\n\nExplanation\nTo create a Git commit without a message, or with an empty message, you can use the --allow-empty-message flag with the git commit command.\ngit commit --allow-empty-message -m \"..."
url: "https://hashnode.com/posts/how-to-create-a-git-commit-without-a-message/68d4b4545a70c718b0cd3d73"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to create a Git commit without a message?](https://blog.alexandrecalaca.com/how-to-create-a-git-commit-without-a-message?utm_source=hashnode&utm_medium=feed)

Solution Here it is: git commit --allow-empty-message -m "" Explanation To create a Git commit without a message, or with an empty message, you can use the --allow-empty-message flag with the git commit command. git commit --allow-empty-message -m "...

Sep 25, 2025 · 1 min read · blog.alexandrecalaca.com  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)
-   [#alexandrecalaca](https://hashnode.com/tag/alexandrecalaca)

## Written by

[Alexandre Calaça](https://hashnode.com/@alexandrecalaca)

@alexandrecalaca

  
[View profile](https://hashnode.com/@alexandrecalaca)

I'm a passionate software developer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
