How to deal best with SVN and local changes, that should not be committed?

回眸只為那壹抹淺笑 提交于 2019-12-05 21:49:28

Just put templates for those configuration/property files into svn. The application should expect different files so you have to create your own and of course set the to svn:ignore...so you can get updates to the templates which you can migrate to the real configuration files...for convenience you can create a shell/batch file the first setup of those configuration files.

Whilst slightly off topic (in the sense that it avoids the SVN issue), I've dealt with this in the past by putting host sensitive settings in a config file, which is automatically included at runtime based on the active hostname.

That said, hopefully someone will know of a way to deal with this within SVN without using some custom pre-commit hook scripts, etc.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!