Re:Conditionally setting your gitconfig
by selfhoster11 on Tuesday August 24, 2021 @08:26AM
(#28287884)
I'm pretty sure that it's a 10-20 minute job to write a Git subcommand wrapper that checks out a work vs personal project, and then symlinks the correct config file for the repo, if someone chose to go this route.
Sure, but that's more like a solution for implementing something like in OP for if it didn't exist in git itself, not the 'why not just use per-repo config' that I responded to.
But... how is this easier than the solution proposed by OP?
Re:Conditionally setting your gitconfig
by selfhoster11 on Tuesday August 24, 2021 @09:19AM
(#28288461)
It's not, but it's my response to the problem discussed by the parent comment.
You could also say 'why does global git config exist at all, you can always just use .git/config on a per-repo basis'.