P Varga
P Varga

Reputation: 20229

Remove (forget) a file from SVN?

How do I remove a file from SVN version control?

I would like to remove & ignore this file so it doesn't need to be always manually removed from every commit for everyone, without it being deleted locally at anyone.

The "solution" found here doesn't work: https://stackoverflow.com/a/2038639/579078

Upvotes: 7

Views: 6234

Answers (3)

Baldy
Baldy

Reputation: 3659

TortoiseSVN has a feature called 'Unversion and add to ignore list' which can be found in the windows explorer context menu (if you have TortoiseSVN configured to show the context menu).

TortoiseSVN documentation article

Upvotes: 3

John Haager
John Haager

Reputation: 2115

Given that SVN isn't designed to allow this, the best approach might be a two step update wherein the first update renames the file to some unimportant name. Then, email the developers to let them know that after the update they will have to manually copy the file back to its original name. Then, once everyone has handled the update (or ignored it at there peril), you can remove the file from SVN and commit.

Upvotes: 1

cdeszaq
cdeszaq

Reputation: 31280

There really isn't any good way to accomplish this with SVN. About the best you can do is to warn users that they need to update in a certain way for the next update by copying the file out and then back in after the update.

Sometimes, the easiest (or only) way to work around technical issues is with "social engineering".

Lastly, I would highly suggest you switch away from SVN when you get a chance. The other options out there, like Mercurial or Git, are much more forgiving.

Upvotes: 2

Related Questions