Skip to content
Advertisement

SVN: Ignoring an already committed file

I have a settings file that is under version control using subversion. Everybody has their own copy of this file, and I need this not to be ever committed. However, like I said, there is already a copy under version control. My question is: how do I remove this file from version control without deleting everyone’s file, then add it to the ignore list so it won’t be committed? I’m using linux command line svn.

Advertisement

Answer

Make a clean checkout, svn delete the file and add the ignore. Then commit this. Everyone else will have to take care (once) that their local copy isn’t deleted on the next svn update, but after that, the local file would stay undisturbed and ignored by SVN.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement