Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I have a file in my project that every developer must change, but I don want those local mods to ever be committed. How can I make svn commit ignore the file?

0
Posted

I have a file in my project that every developer must change, but I don want those local mods to ever be committed. How can I make svn commit ignore the file?

0

The answer is: don’t put that file under version control. Instead, put a template of the file under version control, something like “file.tmpl”. Then, after the initial ‘svn checkout’, have your users (or your build system) do a normal OS copy of the template to the proper filename, and have users customize the copy. The file is unversioned, so it will never be committed. And if you wish, you can add the file to its parent directory’s svn:ignore property, so it doesn’t show up as ‘?’ in the ‘svn status’ command.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123