You are here |
benji.dog | ||
| | | |
ianduffy.ie
|
|
| | | | Learn how to seamlessly switch between work and personal GitHub accounts using SSH, GPG, and SSH agent configurations. This guide walks you through setting up 1Password for secure key management, configuring Git for different identities, and automating the process to enhance your development workflow. | |
| | | |
tevinzhang.com
|
|
| | | | 2023-12-11: ?????? clone ?? | |
| | | |
memo.mx
|
|
| | | | Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Setup multiple git ssh identities for git Generate your SSH keys as per your git provider documentation. Add each public SSH keys to your git providers acounts. In your ~/.ssh/config, set each ssh key for each repository as in this exemple: Host github.com HostName github.com User git IdentityFile ~/.ssh/github_private_key IdentitiesOnly=yes Host gitlab.com Hostname gitlab.... | |
| | | |
logr.cogley.info
|
|
| | If you want to autosign git commits on Mac, there are a couple of tricks to it. I have not been able to get brew gpg to work consistently well, but installing from gpgtools.org seems to be able to be made to work. ?? This worked for me: Install GPGTools from https://gpgtools.org Create / import a key, then run gpg --list-secret-keys to find the sec key fingerprint Make git settings, specifying the signing key as the fingerprint with no spaces: 1 2 3 4 % git config --global gpg. |