It is possible to completely remove a file from my SVN repository?

后端 未结 5 2104
长情又很酷
长情又很酷 2021-01-17 13:16

I am using tortoise SVN for a project that I\'m working alone and I have committed (by mistake) a huge file to my repository (a VC++ Intellisense Database). Now I want to re

5条回答
  •  别那么骄傲
    2021-01-17 13:47

    I've looked at doing something similar, and fundamentally Subversion is set up so that you can't simply delete something like that.

    But since you are already backing up the database, you should check this out. What I ended up doing was dumping my repository, filtering it, and then loading it into a new repository. Of course, I was already doing the dump / filter / load cycle for other reasons, so a little bit of extra filtering didn't add much work. If you're already doing a backup, you can backup your current repo (I assume you're doing a dump, or multiple incremental dumps for that), filter that particular revision out using svndumpfilter, and reload from the backup.

    EDIT: Tigris officially has an issue 516 on this. The "svn obliterate" command is planned, but it isn't implemented yet.

提交回复
热议问题