TIL – Using conditional entries in .gitconfig to automatically manage #git identities based on the working directory. Nice!

dev.to/maxlmator/maintaining-d

@jomo What is the benefit compared to `using git config user.name="Firstname Lastname"` and `git config user.email=name@company.tld` while being in `~/work/`? This will be stored in `~/work/.git/config`

Follow

@lx242 @jomo this works for all repositories below ~/work, not just one.

@clonejo @jomo Ah, got it. Thanks for the clarification. Might indeed spare some headache.

Sign in to participate in the conversation
Mastodon

social.troll.academy is a hobby project of psy. I try my best to keep this instance running but I wont give any service guarantees, use it at your own risk. Server location: Germany