如何处理最好的SVN和本地更改,那不应该承诺? [英] How to deal best with SVN and local changes, that should not be committed?

查看:110
本文介绍了如何处理最好的SVN和本地更改,那不应该承诺?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从SVN信息库中检出了一些项目。要构建这些项目,我必须调整一些配置(例如类路径和属性文件)以适应本地环境。



现在我不想将这些更改提交到存储库。所以设置svn:ignore可能有帮助。但是如果我想从存储库获取更新而不提交这些文件怎么办?是否有任何可以让我获得更新的选项,并阻止我提交?



或者什么是处理本地更改的最佳方法?通过我的应用程序项目,我可以配置eclipse的启动配置,使其适合我本地环境的设置,并将检出的文件保持原样。但是怎么处理那些不会启动的项目?



提前感谢。

解决方案

只需将这些配置/属性文件的模板放入svn。应用程序应该期望不同的文件,所以你必须创建自己的,当然设置为svn:ignore ...所以你可以更新到你可以迁移到真正的配置文件的模板...为了方便你可以创建一个shell /批处理文件首次设置这些配置文件。


I have checked out some projects from SVN repository. To build those projects I have to adjust some configurations (e.g. the classpath and property files) to fit the local enviroment.

Now I don't want to commit those changes to the repository. So setting an svn:ignore may help. But what if I want to get updates from the repository without committing those files? Is there any option that allows me to get updates and prevents me from committing?

Or what is the best way to deal with local changes? With my application projects I may configure eclipse's launch configurations to lauchn them with the settings fitting to my local enviroment and let the checked-out files untouched. But what to do with projects that won't be launched?

Thanks in advance.

解决方案

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.

这篇关于如何处理最好的SVN和本地更改,那不应该承诺?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆