TIL about "Git conditional includes" [1]. You can setup specific Git configs based on your filesystem location. Here's an example:

[includeIf "gitdir:personal/"]
path = .gitconfig-personal
[includeIf "gitdir:work/"]
path = .gitconfig-work
email = Your default email

email = Your personal email

email = Your work email


Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!