How to synchronize configuration between git installations?

I am new to git and I doubt how to synchronize configuration files between developers.

Say I want all developers to have core.autocrlf set to true or the same commit pattern, how can I do this?

Any idea?

Thanks!

+6
git configuration
source share
1 answer

In DVCS there is no such guarantee (as in "Distributed"), since local settings exceed global settings .

But in a closed environment (where the developer population has access to a shared and shared set of resources), you can:

  • encapsulate the git init process ( use the template for general settings)
  • Add the GIT_CONFIG environment GIT_CONFIG to a shared readable file (on Linux, accessed through Samba from Windows users) to force all configuration settings to read from there.

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

+2
source share

All Articles