3 ms·
I do this to separate personal and company repositories on the same machine, and it works flawlessly. An example config looks like: ~/.gitconfig: ``` [includ
by mplewis9z 3y ago
I do this to separate personal and company repositories on the same machine, and it works flawlessly. An example config looks like:
~/.gitconfig:
```
[includeIf "gitdir:~/Personal/"]
path = ~/personal.gitconfig
```
~/personal.gitconfig:
```
[user]
email = {personal email address}
```
And you can have arbitrary numbers of "profiles" like this, as long as each is in their own directory.
- ziml77 3y agoOh that's really cool! I'm absolutely going to use this technique. Thanks both of you!