DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

How to Sign git Commits with an SSH key

2 years ago thenewstack.io
How to Sign git Commits with an SSH key

Summary: This is a summary of an article originally published by The New Stack. Read the full original article here →

Development projects can get very busy. When projects do expand (especially those of an open-source nature), they take on more and more developers.

This is accomplished with the following two commands: git config --global user.email "EMAIL" git config --global user.name "NAME"

To do that, issue the following two commands: git config --global commit.gpgsign true git config --global gpg.format ssh

You can then confirm the SSH signing has been set up correctly with the command: git commit --allow-empty --message="Did SSH signing work?"

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com