jesseduffield / jesseduffield/lazygit

`--allow-empty-message` commit

Open
#4,643 4 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Is your feature request related to a problem? Please describe.**
cannot commit without commit message:

![Image](https://github.com/user-attachments/assets/8fd7af6a-987a-4b44-860a-7b1cbc958b23)

**Describe the solution you'd like**
allow empty commit message via

```
git commit --allow-empty-message -m ""
```

**Describe alternatives you've considered**

add custom command like:

https://github.com/jesseduffield/lazygit/wiki/Custom-Commands-Compendium#user-content-add-empty-commit

However, I think it's better to create it by simply pressing Enter in the "commit summary" prompt.

**Additional context**
similar feature request: https://github.com/jesseduffield/lazygit/issues/2439

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.