SVN undo delete before commit

前端 未结 7 1363
离开以前
离开以前 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:24

    1) do

    svn revert . --recursive
    

    2) parse output for errors like

    "Failed to revert 'dir1/dir2' -- try updating instead."
    

    3) call svn up for each of error directories:

    svn up dir1/dir2
    

提交回复
热议问题