SVN - how to remove a file from version control

I am working on an SVN-controlled project that I had from the server from the very beginning.

In one of the managed SVN directories there is a configuration file (settings.py), which I needed to edit in accordance with my local setting.

I created a local backup of my own configuration file. In order not to update this file on the server, I always return "settings.py" before starting the server. After the transaction, I transfer my "settings.py" from my local backup.

I would appreciate it if anyone could help me how to exclude this file from SVN without any side effects; so I don’t have to go back and restore them manually.

+4
source share
2 answers

The usual way to do this is to save the sample file, for example settings.py.template in the original control, but not settings.py . Thus, you can change settings.py as needed locally, without Subversion, prompting you to execute it.

When you do a new check, copy settings.py.template to settings.py to get started. If you make any changes to the default configuration file, change settings.py.template and commit the changes.

+6
source

Well, you may just not commit the file.

When committed, you can choose what to do; just omit the file.

+1
source

All Articles