Explore >> Select a destination


You are here

ianduffy.ie
| | markentier.tech
2.3 parsecs away

Travel
| | I work across 2 computers and 3 OS, all with nearly same development setup. For work I need some special care for my git... | markentier.tech
| | memo.mx
2.1 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....
| | themythicalengineer.com
1.5 parsecs away

Travel
| | The Big Problem Imagine you have two GitHub accounts: one for personal use and one for work. You might be working on personal projects from your work laptop, but switching between these projects often requires manually updating your GitHub configuration:
| | purefun.dev
20.3 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?