Created
February 13, 2022 20:04
-
-
Save webarchitect609/9413bfbd6f3a35b6282974b6f10683ec to your computer and use it in GitHub Desktop.
Disable or enable GPG signing for git repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Globally enable gpg signing. | |
# Now you will be forced to decide should you disable or enable gpg signing feature for each repo. | |
# If you don't do anything, making a commit will be impossible. | |
git config --global commit.gpgsign true | |
# Disable GPG-signing for this repo only | |
git config --local commit.gpgsign false | |
# Enable GPG-signing for this repo only by setting the GPG key id | |
git config --local user.signingkey $KEY_ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment