gitconfiguration

How to synchronize configuration between git setups?


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!


Solution

  • 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:

    This is not a foolproof solution, but it can get you started.