SVN undo delete before commit

前端 未结 7 1334
离开以前
离开以前 2021-01-29 23:02

If you delete a directory from an SVN working copy, but haven\'t committed yet, it\'s not obvious how to get it back. Google even suggests \"svn undo delete before commit\" as a

7条回答
  •  深忆病人
    2021-01-29 23:25

    svn revert deletedDirectory

    Here's the documentation for the svn revert command.


    EDIT

    If deletedDirectory was deleted using rmdir and not svn rm, you'll need to do

    svn update deletedDirectory

    instead.

提交回复
热议问题