the avatar image of Benjamin Bouvier

TIL: automatically signing Git commits and adding signoffs

(2026-09-14)

For a new work project, I had to set up GPG signing and add the signed-off-with trailer to all my commit messages. I’m using lazygit, so while these options are available in the command line, I needed some more general way to do this. Here’s how I’ve done it, in case it’s useful to other folks.