-- Leo's gemini proxy
-- Connecting to david.flounder.online:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini; charset=utf-8
Configuring git for multiple personas:
gpg --full-generate-key
gpg (GnuPG) 2.4.3; Copyright (C) 2023 g10 Code GmbH
Please select what kind of key you want:
Please select which elliptic curve you want:
Please specify how long the key should be valid.
Is this correct? (y/N)
GnuPG needs to construct a user ID to identify your key.
Real name: David Vasandani
Email address: david@vasandani.me
Comment:
You selected this USER-ID:
"David Vasandani <david@vasandani.me>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
list existing keys and copy the ID; itβs preceded by: sec ed25519/ and export the public key to your clipboard.
gpg --list-secret-keys --keyid-format=long
sec ed25519/31AF7204918814FF 2023-11-08 [SC]
gpg --armor --export 31AF7204918814FF > pbcopy
Add the key to your GitHub profile[1].
β dev cat ~/.gitconfig
...
[includeIf "gitdir:~/src/"]
path = /Users/davidvasandani/.config/git/.gitconfig-personal
[includeIf "gitdir:~/dev/"]
path = /Users/davidvasandani/.config/git/.gitconfig-work```
...
------------------------------------------------------------
β dev cat /Users/davidvasandani/.config/git/.gitconfig-personal
[user]
name = David Vasandani
email = david@vasandani.me
signingkey = 32F2F19BDBA28E38
[commit]
gpgsign = true
------------------------------------------------------------
β dev cat /Users/davidvasandani/.config/git/.gitconfig-work
[user]
name = David Vasandani
email = david.vasandani@sweetgreen.com
signingkey = 31AF7204918814FF
[commit]
gpgsign = true
git rebase --exec 'git commit --amend --no-edit --author="David Vasandani <david@vasandani.me>" -n -S' -i main
Improve the experience with 1Password.
https://blog.1password.com/git-commit-signing/[1]
-- Response ended
-- Page fetched on Sat Apr 27 19:18:18 2024