Last active
November 19, 2024 09:59
-
-
Save pancudaniel7/e09f844bf49052b162ffdd9341c6cd57 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# first param is gpg key id (gpg --list-secret-keys --keyid-format LONG (sec field from / to right) - to get this) | |
echo 'export GPG_TTY=$(tty)' >> ~/.zshrc | |
brew uninstall gpg | |
brew install gpg2 | |
brew install pinentry-mac | |
gpg --list-keys --keyid-format LONG | |
git config --global user.signingkey $1 | |
git config --global gpg.program $(which gpg) | |
git config --global commit.gpgsign true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment