Reverting single file in SVN to a particular revision

前端 未结 14 2063
生来不讨喜
生来不讨喜 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:41

    surprised no one mentioned this

    without finding out the revision number you could write this, if you just committed something that you want to revert, this wont work if you changed some other file and the target file is not the last changed file

    svn merge -r HEAD:PREV file
    

提交回复
热议问题