Committing Machine Specific Configuration Files

后端 未结 10 1489
我在风中等你
我在风中等你 2020-11-22 06:43

A common scenario when I develop is that the codebase will have several config files which require machine specific settings. These files will be checked into Git and other

10条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 07:16

    I do it like it's recommended here with default and local config files. To manage my local config files wich are in the projects .gitignore, I made a git repo ~/settings. There I manage all my local settings from all projects. You create, for example a folder project1 in ~/settings and put all the local config stuff for this project into it. After that you can symlink that files/folder to your project1.

    With that approach you can track your local config files, and don't put them into to the normal source code repository.

提交回复
热议问题