gitconfig gems
2025-06-23
my gitconfig is not the simplest and I use some lesser known gems:
- multiple files with
IncludeIfdirective to set up overlays
[includeIf "gitdir:~/pumba/"]
.gitconfig-overlay
So everytime I work on something under ~/pumba/, I have git configured for those projects in a different manner.
Why?
Github does not allow you to have multiple e-mails/profiles configured.
.gitconfig
[user]
Timon Viola
timon@timon.com
.gitconfig-overlay
[user]
Timon
pumba@pumba.org
1234ABCD
[commit]
true