Reverting single file in SVN to a particular revision

前端 未结 14 1841
生来不讨喜
生来不讨喜 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条回答
  •  走了就别回头了
    2021-01-29 19:00

    You want to do

    svn merge -r [revision to revert from]:[revision to revert to] [path/filename]

    Once you do that, you will have that revision of the file in a committable state. Commit the file.

提交回复
热议问题