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`

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

Follow

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

Sign in to participate in the conversation
Ruhr.Social

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