A possible command might look like git-user-bend create-conditional-config <alias> [<directory>][--config-name|-c] with an implicit --edit|-e option set to modify the ~/.gitconfig file. It will create a nameable Git config file in the ~/.config/git directory pointing to the parent directory of the repository.
Relates to #5.