如何通过分阶段更改撤消 svn 更新?
我已经使用以下方法从 SVN 分支中删除了大量文件:
svn rm filename
rm -rf filename
当我运行 svn status 时,我看到我删除的所有文件都列为已删除并准备提交。在提交更改之前,我运行了 svn update。这导致我删除的所有文件都被添加回来,并且当我运行 svn status 时它们不再暂存为已删除。
有没有办法让我的删除重新回到暂存状态,而无需重新完成所有工作?
I've been removing lots of files from an SVN branch using:
svn rm filename
rm -rf filename
When I ran svn status, I saw all of the files I deleted listed as deleted and ready to commit. Before committing the changes, I ran svn update. This caused all of the files I deleted to be added back, and they are no longer staged as deleted when I run svn status.
Is there a way to get my deletes back in staging without doing all the work over again?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是你找不到解决方案:
通过删除而不使用
Subversion 认为文件在某个地方意外消失了。 幸运的是,在您的
Subversion 上为您重新创建了这些文件。
它还完全忘记了重新创建的文件。但是,如果您有 svn 命令的输出,您应该会看到 subversion 所做的操作。
unfortunately you will not find a solution:
by deleting without using
Subversion thinks the files were somewhere accidentally vanished. So on your
Subversion thankfully recreate these files for you.
Also it totaly forgot what files where recreated. However if you have the output of your svn command, you should see the actions subversion did.