Roll back or revert entire svn repository to an older revision

前端 未结 14 1351
时光取名叫无心
时光取名叫无心 2020-12-04 06:53

I messed up on my SVN repository and now need to revert the entire repository from revision 28 to 24 and don\'t want to deal with diffs or conflicts. Is there a quick and si

相关标签:
14条回答
  • 2020-12-04 07:42

    You can do a new checkout of a particular revision. http://svnbook.red-bean.com/en/1.1/re04.html

    svn co path/to/my/repo -r 24
    
    0 讨论(0)
  • 2020-12-04 07:42

    If you really want to completely remove files from the repository, you need to do an svndump into a file, filter out the revs and/or file paths you don't want, make a new repo, and svnload the filtered dump into the new repository. You'll want to carefully read the SVN book section on repository maintenance before you do any of this, and make sure you don't remove the existing repo until you're sure the new one has the stuff you want.

    0 讨论(0)
提交回复
热议问题