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`

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

@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


v english version below v

Willkommen bei Ruhr.Social, eurer Mastodon Instanz für alles rund ums Ruhrgebiet. Wir wollen eine Plattform für Tech-Liebhaber, Nerds und Gründer sein und uneingeschränkten, werbefreien und sozialen Austausch ermöglichen.

Viel Spaß :)

Welcome to Ruhr.Social, your mastodon instance for everything regarding the Ruhr area in Germany. We want to be a platform for tech-lovers, nerds and founders of small businesses and provide an ad-free and social place to talk for you.

Have fun :)

This instance is made possible by the awesome people at 9elements