I work from several different locations on the same project and I use SVN to checkout wherever I happen to be working. I have a settings file that needs one line changed depending on where I’m working, but otherwise, it’s a relatively static file. It’s a bit annoying when every commit the file is just switching that one line back and forth depending on where I work.
Is there an easy way to manage this? At the least, I’d like to know of a way to exclude the file from commits even if it’s modified. It would be great if it’s possible to checkout a different version of the file depending on where I am.
The usual way to manage this is to remove your (making up a name here)
settings.cfgfile from Subversion, and check in asettings.cfg.examplefile instead. On each machine, you would copysettings.cfg.exampletosettings.cfgand edit as necessary. For changes to the structure of the config file or to default settings or whatever, editsettings.cfg.example.