I’m generating a git patch. And then I want to send it to the project maintainer.
I want to mark my Name and my email address as signed-off-by in the git patch
How to do it? in order that the project maintainer get the signed-off-by field with my name and email address.
When you commit, just use:
or
Or you can just write at the end of the commit message, on a line by itself separated by a blank line from the body of the commit:
If you already have the commit, use
git commit -s --amendto add the above signoff line.Or, if you are going to be sending this as a patch or patch series, you can use
git format-patch -sor--signoffto add the signoff to the patch itself, without modifying the commit.