What is the proper syntax to ignore a specific file such as a configuration file which may be different depending if it is running on Development, QA or Production?
Asked
Active
Viewed 921 times
1
-
possible duplicate of [App.config only for my developer machine.](http://stackoverflow.com/questions/2309178/app-config-only-for-my-developer-machine) – Sander Rijken Sep 30 '10 at 18:40
-
Put your config files in a different svn tree, that you can branch into dev, QA and production versions. – Ether Sep 30 '10 at 18:43
2 Answers
1
Create and check in a template web.config.template and ignore web.config the 'deployed' version.
To automate the web.config.template customization create a shell script.
zellus
- 9,595
- 5
- 37
- 56
0
you can add property svn:ignore in your repository and ignore *.config files or exactly web.config
Timur Sadykov
- 10,211
- 6
- 31
- 43
-
That doesn't help, `svn:ignore` only works to hide files that svn would otherwise add – Sander Rijken Sep 30 '10 at 18:52