Is there a way to “autosign” commits in Git with a GPG key?

Is there an easy way to make Git always signs each commit or tag that is created?

I tried it with something like:

alias commit = commit -S

But that didn’t do the trick.

I don’t want to install a different program to make this happen. Is it doable with ease?

Just a side question, maybe commits shouldn’t be signed, only tags, which I never create, as I submit single commits for a project like Homebrew, etc.

6 Answers
6

Leave a Comment