Mercurial workflow question (how to handle Config files)

前端 未结 6 1774
有刺的猬
有刺的猬 2021-01-05 12:26

I have a long standing problem: at work we\'re using mercurial as a DSCM, but we can\'t figure out how to keep our config files in sync.

The problem is that we want

6条回答
  •  孤城傲影
    2021-01-05 13:09

    Put your connection strings in a different file. e.g. in web.config:

    
    

    Then you have a connections.config file with the connection strings, which you can exclude from the repository thereby letting each developer modify to their heart's content.

    If you want a 'reference' version of the connections.config file just add another file connections.example.config that is under source control, and use that as your template version.

提交回复
热议问题