/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

stevenhicks.me
| | jamesmead.org

Using conditional includes in your git configuration
2.4 parsecs

Travel
| |
| | garrit.xyz

Generalist software developer writing about scalable infrastructure, fullstack development and DevOps practices.
2.3 parsecs

Travel
| |
| | jinyuz.dev

Suppose that you have a full time job at Amazon, and you want to separate your git commit emails from Amazon and your personal projects. Setting up ~/.gitconfig $ touch ~/.gitconfig For our personal projects, we will use the ~/.gitconfig file with the following content: [user] name = James Banned email = james.banned@gmail.com [includeIf "gitdir:~/Work/"] path = ~/.gitconfig.work The includeIf basically means that include this config if I'm inside the ~/Work/ directory.
2.5 parsecs

Travel
| |
| | wittchen.io

Short introduction Sometimes people need to specify multiple values for single .gitconfig file or they want to share just part of the configuration between two machines. There are different approaches for that. I can show you mine. Different configs for different Operating Systems On my private computer, I use Linux. I use Git for my private projects and I use my private e-mail address there. At the same time, I use Git at work on macOS with exactly the same Git configuration, but with a different e-mail...
6.8 parsecs

Travel
|