knowledge_base:sonstiges:git_sign_commit
Inhaltsverzeichnis
Git Commits Signieren
SSH
Doesnt work with VScode GUI
Benötigt git>=2.34
git config --global gpg.format ssh git config --global user.signingkey ~/.ssh/id_ed25519 git config --global commit.gpgsign true
with ssh-agent
install git for windows with „external OpenSSH“1)
git config --global user.signingkey "ssh-ed25519 AAAAblablapulbickey user@gerät"
GPG
generate key
gpg --full-generate-key
exporting key Linux
gpg --output private.pgp --armor --export-secret-key xx@xx.de
install GPG Windows
winget install GnuPG.GnuPG
importing key
gpg --import "Z:\Guest-Share\VM-setup\gpg\private.pgp"
settings
https://stackoverflow.com/a/68958117
git config --global gpg.program "c:/Program Files (x86)/GnuPG/bin/gpg.exe" git config --global user.signingkey 26A64778F76A7911 git config --global commit.gpgsign true
Troubleshooting
https://gist.github.com/paolocarrasco/18ca8fe6e63490ae1be23e84a7039374
export GPG_TTY=$(tty)
/storage/data/pages/knowledge_base/sonstiges/git_sign_commit.txt · Zuletzt geändert: (Externe Bearbeitung)
