Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 673
FreakShow Avatar asked Dec 03 '25 06:12

FreakShow


1 Answers

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.

like image 124
khmarbaise Avatar answered Dec 05 '25 22:12

khmarbaise



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!