Svn ignore update version

I have this setting where in my development copy I can commit changes to a specific file in the repository. Then in my working copy, which does only checks, I usually edit this file because it contains links that are independent of the environment. Is there a way to ignore this file during subsequent checks / updates without using svn: ignore? More like -ignore-files / projectroot / config.php or -ignore-files -F ignoredfiles.txt.

+3
source share
3 answers

I would suggest renaming the file in the repository from config.php to config.php.sample. This is the file you are editing to change the default settings. To deploy either to the development environment or to the production server, you must copy config.php.sample to config.php and edit it without worrying about future conflicts.

+9
source

Another solution is to support all configuration files for each SVN environment. Depending on the value of the environment variable, only some files are used.

Advantages:
1. All files in SVN.
2. There is no copy of the files during deployment / checks / updates ...

Disadvantages:
1. All files in SVN.
2. There is an environment variable.

+2
source

tsvn: ignore-on-commit. , TortoiseSVN. , .

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-commit.html (bottom of page)

+1
source

Source: https://habr.com/ru/post/1697320/


All Articles