Git rebase and semi-tracked per-developer config files

后端 未结 2 374
攒了一身酷
攒了一身酷 2021-01-21 18:49

This is my first SO question and I\'m new-ish to Git as well.

Background: I am supposed to be the version control guru for Git in my group of about 8 developers. As I d

2条回答
  •  孤街浪徒
    2021-01-21 19:13

    The general idea behind config file is to only put under source control:

    • a template of it,
    • a script able to generate a proper config file based on local data (username, hostname, ip address, and so on)

    The other solution would be to do this in a dev branch, along with other local devs, and add a custom merge driver to merve merge back those config file modifications.
    But that more complex and generally not needed if your template file is correctly built.

提交回复
热议问题