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 5,289 times
1 Answers
6
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,129,465
- 480
- 4,036
- 4,755
-
Thanks @vonc . Is there any way i can modify commit size at the server end – Arjun Nov 05 '17 at 15:06
-
1@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