Explore >> Select a destination


You are here

utf9k.net
| | vadosware.io
2.2 parsecs away

Travel
| | Yet another article on the internet about how to reasonably manage multiple git personas
| | jdsalaro.com
3.6 parsecs away

Travel
| | It's been awhile since I've setup my last work ...
| | memo.mx
2.9 parsecs away

Travel
| | 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....
| | purefun.dev
22.0 parsecs away

Travel
| If you install a new machine and forget to set your email and commiter name, then your Git history will be a tad ugly, with your machine name involved instead of a real email. So how do you set the default? Like this: git config --global user.name "Alice E" git config --global user.email "alice@example.org" Override per repo Ideally, do it before you start committing things. But what if you want different committer names and emails depending on the context?