SVN: How do I maintain my local config.blah file?

后端 未结 9 945
天涯浪人
天涯浪人 2020-12-29 13:56

On the SVN server, there is a file called config.conf. I have a local version called the same thing (in the same place). How can I make sure that my loc

9条回答
  •  情深已故
    2020-12-29 14:18

    SVN will always think that that file is part of the repository if you name it the same and stick it in the same directory. Your options are

    • Rename it (maybe write a shell script to mv config.conf config.conf.theirs && mv config.conf.mine config.conf and then run your app)
    • Move it. Maybe add some logic to your app that checks for config.conf in a local, user-specific directory and then uses the default config.conf if none are found

提交回复
热议问题