I don't know if this even possible or not.I was wondering if there is any way like SSH Agent forwarding by which we can forward our .gitconfig on the remote server, and git automatically picks the settings up when making commits.
Git config forwarding
ssh;git;ssh agent