It should be better performing and not rely on the git command: goconfig
We can simply look for gitconfig files and their precedence according to git's rules, and then use that library.