Sublime Forum

How to sign commits


How can I git commit -s automatically for every new commit? Can this be specified per project?

(Not GPG, that works)


$ git config commit.gpgSign true


Sorry no. I’m not asking about GPG signing. I have that set up. I want the git commit -s type of signing.



The format.signoff git config option enables adding a signoff on patches automatically, but I don’t think it applies to commits in general just based on the name and the description.

The command line equivalent of what you want would be to set up a git alias that runs commit -s for you along with getting used to using the alias instead of git commit. You can set up custom git commands in Merge (i.e. call git with whatever argument you want) but I don’t know how well that would play with the GUI (my guess would be not well).



Has anyone figured out a good way to get Sublime Merge to sign commits?



This is a pretty big annoyance for me too.

It would really nice if they could just have a “commit and sign-off” option under the commit button (like they have the “amend previous commit” option) which would just add -s to the git commit -q -m "..." command that’s already there.

Another alternative that would be convenient would be to have a button in the commit message editor that would add your sign-off to the end of the current message for you, but I don’t see that as being better than using git’s own -s option.

Is there a better place to request a feature like this?



Is there a config option for Sublime Merge that could append options to the Git Commands? I need to try it with the Push, and Stash stuff.

The closest I can think is to do something similar to this: