DEV Community

Discussion on: Signing Git commits with GPG keys that use modern encryption

Collapse
energeticpixels profile image
Anthony Jackman

@benjaminblack I love the article. Sounds too simple. If I happen to use the same computer (same computer user) to work with two separate github accounts, is there a way to sign commits with two separate signatures? I have a personal github account and a work (day job) account that I need to properly sign commits for.

Collapse
benjaminblack profile image
Benjamin Black Author • Edited on

What you want is nominally separate global .gitconfig configurations depending on the project. Then you can set up separate signing keys for each configuration.

See this SO question:

stackoverflow.com/questions/422041...