Reverting single file in SVN to a particular revision

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

    I found it's simple to do this via the svn cat command so that you don't even have to specify a revision.

    svn cat mydir/myfile > mydir/myfile
    

    This probably won't role back the inode (metadata) data such as timestamps.

提交回复
热议问题