为什么 svn checkout 包含已从存储库中删除的文件?
我在 Linux 机器上有一个存储库,当我通过 TortoiseSVN 浏览存储库时,我可以看到某些文件夹已从存储库中删除(它们应该是这样),但是当我执行新的“svn checkout”(到新的文件夹),它尝试在 Linux 机器上检索那些已删除的文件。
为什么 SVN 会检索这些已删除的文件,我怎样才能告诉它不要这样做?
我看到了这个类似的问题,但它没有解决我的问题:
I have a repo on a Linux box and when I browse the repo via TortoiseSVN I can see that certain folders have been deleted from the repo (as they should be), and yet when I do a fresh "svn checkout" (to a new folder) on the Linux box it attempts to retrieve those deleted files.
Why is SVN retrieving these deleted files, and how can I tell it not to do so?
I saw this similar question but it doesn't address my problem:
How do you stop SVN Checkout from bringing back files that were deleted from the project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SVN 恢复已删除文件的原因只有几个。
大多数情况下,#3 会导致混乱,因为 SVN 删除并不意味着自动提交(因此您可以将删除与其他更改结合起来)。
There are only a few reasons SVN will restore a file that's been deleted.
Most of the time it's #3 that causes the confusion, as a SVN delete doesn't imply an automatic commit (so you can couple a delete with other changes).