I’m new to git, and I’m doubting how can I synchronize config files between developers.
Let’s say I want all developers to have core.autocrlf set to true, or the same commit template, how can I do it?
Any idea?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no such guarantee in a DVCS (as in “Distributed”), since local settings beat global settings.
But in a closed environment (where the population of developers have accessed to a common and shared set of resources), you can:
git initprocess (to use a template, for common settings)GIT_CONFIGenvironment variable to a shared read-only file (on Linux, accessed through Samba from Windows users), to force all config settings to be read from there.This is not a full-proofed solution, but it can get you started.