Explore >> Select a destination


You are here

blog.bdw.li
| | jamesmead.org
3.9 parsecs away

Travel
| | Using conditional includes in your git configuration
| | blog.kulman.sk
2.5 parsecs away

Travel
| | I use the same machines to work on both personal and work projects. I usually have to use a different Git identity for the work projects than for my personal projects. Previously I had my personal Git identity set globally and then used local Git configs to override it in work projects. This worked just fine but it was too much work. There is a better solution. Git config allows you to use, or better to say include, another Git config for a specific directory and all its subdirectories. I have all my pro...
| | memo.mx
3.5 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....
| | ar.al
23.2 parsecs away

Travel
| I'm setting up my new XPS 13 running Pop!_OS and one of the things I always have to do on any new machine is to configure git. So, both for my own reference and in case it helps anyone else, here's a list of things I do to set up git: Set up my identity (used in commits, tags, etc.) git config --global user.name "Aral Balkan" git config --global user.email mail@ar.