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



@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`

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

@lx242 @jomo Neat idea. I switch computers all the time and forgetting to set this happens all the time 👍

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!