Sublime Forum

How to sign commits

#1

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

(Not GPG, that works)

0 Likes

#2
$ git config commit.gpgSign true
0 Likes

#3

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

0 Likes

#4

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).

0 Likes

#5

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

0 Likes

#6

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?

2 Likes

#7

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:
https://www.sublimemerge.com/docs/command_palette#user_entries

0 Likes