You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If linting finds a problem with a missing Signed-off-by trailer, then the logs contain the following error:
Error: not ok 6 signed-off-by: Commit must have a "Signed-off-by" trailer ().........
# Please review the commit message guidelines:
# https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines
Your commit must contain the Signed-off-by line with your name and email
address as an acknowledgement that you agree to the Developer Certificate of Origin.
Bot generated commits are exempt from this requirement. If a commit has
multiple authors, the Signed-off-by line should be added for each author;
and at least one should match the author information in the commit metadata.
This rule does not apply to dependency updates (e.g. cherry-picks), release
commits, or backport commits.
It does not however give the details that were in issue #62577 and that said:
How?
When you create a commit, use the -s flag, e.g. git commit -s. This will automatically add the Signed-off-by trailer in your commit message using your configured named (sic) and email address.
how timely! this was confusing for me actually just today, as the initial linting passes on #64806 made me believe I only needed GPG signoff, only to do that and then see the trailer. This might be entirely my fault not fully reading the guidelines ahead of time, but since you above question is seeking feedback - this is a big 👍
I didn't add information about GitHub Desktop after all and instead just kept it simple, referring only to git commit -s. There are many different git UIs available, and it wouldn't be possible to cover them all.
Activity
MikeMcC399 commentedon Jul 28, 2026
I would plan to submit a documentation PR for this. Opening as issue first to collect any feedback.
bmuenzenmeyer commentedon Jul 29, 2026
how timely! this was confusing for me actually just today, as the initial linting passes on #64806 made me believe I only needed GPG signoff, only to do that and then see the trailer. This might be entirely my fault not fully reading the guidelines ahead of time, but since you above question is seeking feedback - this is a big 👍
MikeMcC399 commentedon Jul 29, 2026
git commit -s, lower case
sfor Signed-off-by, could be confused with:git commit -S, upper case
Sfor--gpg-signThat could be mentioned as well, to avoid confusion, since both options concern signing, but in different ways.
MikeMcC399 commentedon Jul 31, 2026
PR #64862 is submitted and available for review.
I didn't add information about GitHub Desktop after all and instead just kept it simple, referring only to
git commit -s. There are many different git UIs available, and it wouldn't be possible to cover them all.doc: add contributing detail for git Signed-off-by trailer
doc: add contributing detail for git Signed-off-by trailer
doc: add contributing detail for git Signed-off-by trailer
doc: add contributing detail for git Signed-off-by trailer
doc: add contributing detail for git Signed-off-by trailer
doc: add contributing detail for git Signed-off-by trailer