ramble a quick howto

Aminda Suomalainen 7 months ago
parent 3340137613
commit 28afee650c
Signed by: Aminda Suomalainen
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
  1. 22

@ -10,6 +10,28 @@ which does about the same for PGP.
* GitHub, Giteas and GitLabs expose user public keys when you append a .keys after their profile page
* Good ideas are made to be copied, so maybe there will be more repositories like this ;)
## Quick howto
I don't mean this to be used directly, only to be took inspiration from. See the first
link in further reading.
mkdir -p ~/src/
cd ~/src/
git clone
git config --global gpg.ssh.allowedSignersFile ~/src/
Git commands should now recognised commits signed with keys I have allowed.
In the last command it's fine to remove `--global` to only affect the single
repository you are on (while I haven't tested this), should that repository
be something only I am signing in or something I need to verify otherwise
enough to list it here.
On the last command, `git config` turns it into absolute path, while manually
edited `.gitconfig` can literally have the above. I wonder if the command
would understand `--` before the file, but not enough to actually try it :smiley:
## Further reading
* [Caleb Hearth: Signing Git Commits with Your SSH Key](, [](, inspired me to try this