SVN - delete a revision, or make an older revision the head

前端 未结 3 2160
自闭症患者
自闭症患者 2021-01-02 02:14

I\'m fairly new to SVN and I\'ve never had to revert back to a previous revision, although I can get a copy of a revision from the repository okay. I\'m using TortoiseSVN a

3条回答
  •  心在旅途
    2021-01-02 02:35

    The easiest way to do that with TortoiseSVN:

    • show the log for the working copy (opens the log dialog)
    • select the revision you want to undo or the revision to which you want to go back to
    • right-click on that revision, then choose "revert item to this revision" or "revert changes from this revision".

    The former of those two commands reverts the working copy to the state it was in that revision, while the latter only reverts the changes of that specific revision withour reverting later changes too.

提交回复
热议问题