Reverting single file in SVN to a particular revision

前端 未结 14 1844
生来不讨喜
生来不讨喜 2021-01-29 18:09

I have a file as shown below in an SVN repo that I would like to revert to a previous version. What is the way to do this in SVN? I want only downgrade this particular file to a

14条回答
  •  -上瘾入骨i
    2021-01-29 19:01

    If it's only a couple of files, and if you're using Tortoise SVN, you can use the following approach:

    1. Right click on your source file, and select "TortoiseSVN" -> "Show log".
    2. Right click on a revision in the log, and select "Save revision to...".
    3. Let the old revision overwrite your current file.
    4. Commit the overwritten source file.

提交回复
热议问题