What's the best practice for handling system-specific information under version control?

后端 未结 6 1679
情书的邮戳
情书的邮戳 2021-01-05 11:26

I\'m new to version control, so I apologize if there is a well-known solution to this. For this problem in particular, I\'m using git, but I\'m curious about how to deal wit

6条回答
  •  情深已故
    2021-01-05 11:32

    Sounds like your production code is a full on git repository and to update production you do a git pull? You might want to try a separate build process that checks the code out of your repository and creates a clean build (no .git folder). You could could have environment specific config files which contain your paths that are copied or created along with it.

提交回复
热议问题