====== 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"((https://github.com/git-for-windows/git/issues/3647))
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)