How to add custom configuration without messing the local repository
You can add anything you want (secret stuff, for example), to the ~/.localrc
file.
You can just change the default ~/.gitconfig file, since it includes the
dotfiles managed one.
You can edit the ~/.ssh/config.local file.