Reverting single file in SVN to a particular revision

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

    If you want to roll back an individual file from a specific revision and be able to commit, then do:

    svn merge -c -[OldRev#] [Filename]

    ie. svn merge -c -150 myfile.py

    Note the negative on the revision number

提交回复
热议问题