Separate configurations for individual machines
Create different configuration files for different machines and on each machine symbolically link one of them as a real configuration. The symbolic link itself will not be tracked, add it to .gitignore.
Simlingsvyaz can be done in the post-checkouthook . You need to identify the current host (for example uname -n) and have a file that contains the appropriate settings for the hook.
The disadvantage of this solution is that it is not dynamic. When a new version of Git is installed on the host, you should check to see if the appropriate configuration works with it.
What is impossible
-, , , , manpages . Git . , , , .
. , , named pipe, , .
git --version . , Unix, . , , Git .