How to remove a file from Subversion (make it "unversioned")?

I always have this problem, and I have not yet found the answer.

Suppose you set up a partner who sets up a new project and imports each of its files, including those related to the environment configuration that should not be controlled by the source during development (i.e. the database configuration file).

So, this is the first time I am checking a project and obviously I need to modify the database configuration file so that it works. But then this file is marked as modified and will be displayed in the commit list, so is there a way to "flip this" at this point?

I tried "Delete and add to ignore list", but it just marks the file that needs to be deleted, and as soon as I commit, my partner updates the project and finds that its db configuration file has been deleted.

So, how can you actually work with these environment-specific files? (Suppose you have already added them to the repo). Are you just changing the file locally and not removing it from every commit?

Thank you and sorry if this is a stupid question.

+3
source share
3 answers

I think many applications have db.conf.samplewhich they introduced into version control, and then people renamed it to db.conf, which is ignored in the version control.

+7

, "" . .

+1

This is a pain in the back, but there is always this . Until recently, I did not use subversive activities, so I hope that there will be a better solution. However, he gives me what you want.

0
source

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


All Articles