Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable this annoying enforcement of comments on git

Tags:

git

I want to be able to commit without having to say something about why I am committing. Is there a way to prevent git from committing because I do not fill in a comment. I could do this with SVN without a problem, but I can't with git for some reason.

Ted.

like image 771
Flethuseo Avatar asked Oct 16 '25 15:10

Flethuseo


2 Answers

From git-commit manual

git commit --allow-empty-message
like image 74
Paweł Obrok Avatar answered Oct 18 '25 07:10

Paweł Obrok


Take a look at the answer to this SO question:

  • Git commit with no commit message

Note that, though it might seem annoying at first, it's better to train yourself to actually enter comments. The above question also has links that debate/explain why this might be important.

like image 25
icyrock.com Avatar answered Oct 18 '25 07:10

icyrock.com



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!