Is there any way .git/config can be replicated onto a remote server. I would like to modify http postBuffer at the remote url end using command line. Does git push replicate config as well.
Asked
Active
Viewed 8,381 times
1 Answers
10
The config remains purely local, for security reason, as I mentioned in 2011.
So git push
does not replicate config as well.
One way would be to store a config file as a regular file in the repo, with instruction to set it up once cloned.
But directly change a config setting on a remote server from a client-side command-line is not possible.
Not unless you can establish a direct connection (for instance ssh
) onto the server, to the the repository path, and execute a git config
command there.

VonC
- 1,262,500
- 529
- 4,410
- 5,250
-
1Thanks @vonc . Is there any way i can modify commit size at the server end – Arjun Nov 05 '17 at 15:06
-
2@Arjun It depends on what is the "server end". If you can access it through ssh, then yes. – VonC Nov 05 '17 at 15:08
-
1I think making a git hook to make the local setting again on post-checkout should work too. – paradroid Sep 08 '22 at 20:51
-
2@paradroid Don't forget to come back here and let us know of what you have created! – VonC Sep 08 '22 at 20:53