commit signing


Set up Git

gpg --list-signatures

look for lines starting with "sig" to get the hash
then run this to sign all commits from all repositories using this signature

git config --global user.signingkey 50AF246E5419527E
git config --global commit.gpgsign true

test that signing works

echo "test" | gpg --clearsign

bug fix

quand je commit ça fait cette erreur

# git commit --no-verify -am up
error: gpg failed to sign the data
fatal: failed to write commit object


export GPG_TTY=$(tty)

set up gitea

go to user settings > gpg keys and add your key.

Now when you commit you see a green lock