Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gerrit Error: commit subject >65 characters; use shorter first paragraph

Tags:

git

gerrit

We started to use the Gerrit code review recently. Sometimes when you make a simple commit and try to make a push to Gerrit, this error is displayed:

   remote rejected
   commit subject >65 characters; use shorter first paragraph

I looked in the web but did not find how to solve this problem. I tried to make an amend in the previous commit and reduce the size of the commit message, but the error remains.

What kind of error is that? And how to solve it? Is there some Gerrit configuration about the size of the commit message?

like image 975
Jadson Santos Avatar asked Sep 01 '25 18:09

Jadson Santos


1 Answers

The first paragraph of your commit message should be 65 characters.

You may split it for a longer text:

initial commit message <65 chars

my long commit message with a lot of information,
Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
Suspendisse metus nulla, blandit eget aliquam sed, tincidunt
nec turpis. Ut quis gravida augue, scelerisque tempor risus...
like image 132
maggick Avatar answered Sep 04 '25 10:09

maggick