Search code examples
gitphpstormphpstorm2017.3

Prevent PhpStorm from adding “Signed-off-by: …” at the end of commit message


When I create a commit with git using command line, the commit message is not altered.

When I create a commit though PhpStorm's GUI with the checkbox “Sign-off commit” checked, PhpStorm add this line at the end of my commit message:

Signed-off-by: Firstname Lastname <[email protected]>

How to prevent this? I don't want PhpStorm to write “Signed-off-by: …” at the end of every commit.


Here is my git configuration:

$ git config --list
commit.gpgsign=false
user.signingkey=…
user.name=Firstname Lastname
[email protected]
push.default=current
core.excludesfile=/home/…/.gitignore_global
fetch.prune=true
rebase.autosquash=true
gpg.program=gpg2
format.signoff=false
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
[email protected]:Victoire/victoire.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
commit.gpgsign=true

Solution

  • The "Signed-off-by" message actually originates from Git, not PhpStorm.

    You can disable this sign-off message by unchecking the "Sign-off commit" checkbox.

    Taken from this answer regarding signing-off commits.

    Add Signed-off-by line by the committer at the end of the commit log message. The meaning of a signoff depends on the project, but it typically certifies that committer has the rights to submit this work under the same license and agrees to a Developer Certificate of Origin (see http://developercertificate.org/ for more information).

    FYI, this should not be confused with "Signing" commits. Signing commits has to do with GPG keys, while "signing-off" has to do with just the arbitrary message that is suffixed to the commit.