Hacker News new | ask | show | jobs
by zubspace 1739 days ago
I recently learned, that you're able to switch the git user dynamically based on the folder the repository resides in, by using the includeif directive in your gitconfig. [1]

This is very useful, if you have separate accounts, for example a business and a personal account.

[1] https://gist.github.com/Icaruk/f024a18093dc28ec1588cfb90efc3...

1 comments

I also recently learned this... just now. Thanks for sharing.