Reverting single file in SVN to a particular revision

前端 未结 14 1845
生来不讨喜
生来不讨喜 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 18:53

    Just adding on to @Mitch Dempsy answer since I don't have enough rep to comment yet.

    svn export -r  svn://host/path/to/file/on/repos --force
    

    Adding the --force will overwrite the local copy with the export and then you can do an svn commit to push it to the repository.

提交回复
热议问题