今天svn更新的时候,删了一个目录,出现了这个问题。
Note: this subcommand does not require network access, and resolves
any conflicted states.
--targets ARG : pass contents of file ARG as additional args
-R [--recursive] : descend recursively, same as --depth=infinity
--depth ARG : limit operation by depth ARG ('empty', 'files',
'immediates', or 'infinity')
-q [--quiet] : print nothing, or only summary information
--changelist [--cl] ARG : operate only on members of changelist ARG
--username ARG : specify a username ARG
--password ARG : specify a password ARG
--no-auth-cache : do not cache authentication tokens
--non-interactive : do no interactive prompting
--trust-server-cert : accept SSL server certificates from unknown
certificate authorities without prompting (but only
with '--non-interactive')
--config-dir ARG : read user configuration files from directory ARG
--config-option ARG : set user configuration option in the format:
FILE:SECTION:OPTION=[VALUE]
For example:
servers:global:http-library=serf
在网上查,说是:
svn
revert file
但是这个命令只能解决一个文件的local edit问题。我这是目录出错。看了一下svn的help:
revert: Restore pristine working copy file (undo most local edits).
usage: revert PATH...
Valid options:
Global options:
所以加上-R参数。
svn
revert dir -R
成功恢复了。之后再svn
update 即可将要删的文件夹删除。
本文介绍了解决SVN中误删目录的问题,通过使用`svn revert`命令并结合`-R`参数递归恢复整个目录,最后通过`svn update`完成删除操作。
818

被折叠的 条评论
为什么被折叠?



