How to version control config files pragmatically?

后端 未结 9 1126
日久生厌
日久生厌 2020-11-30 02:04

Suppose we have a config file with sensitive passwords. I\'d like to version control the whole project, including the config file as well, but I don\'t want to share my pass

9条回答
  •  粉色の甜心
    2020-11-30 02:30

    I'm used to make a txt file of it with the structure of the configfile. And after that I'll make a copy and change the extension and let my version control system ignore this file(s).

    So when you make changes in the config file, just update the txt version of it. That's the only option I can think of which is logic as well (in my eyes)

提交回复
热议问题