本文介绍了Clearcase删除目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我具有这样的目录结构:I have a directory structure like so:root_dir dir1 dir2 file1.txt file2.txt sub_dir file3.txt file4.txt使用 rmname 删除 dir2 及其所有子元素的最佳方法是什么?我可以简单地执行 cleartool rmname dir2并使其递归删除其所有内容吗?What is the best way to delete dir2 and all it's sub-elements using rmname? Can I simply do 'cleartool rmname dir2' and have it recursively delete all it's contents?推荐答案您只需要:cleartool checkout -nc root_dircleartool rmname dir2cleartool checkin root_dir在新版本的中删除了对 dir2 的引用root_dir ,使 dir2 及其所有内容不可见(无法访问)。 您可以轻松地恢复 dir2 (及其所有内容),通过合并以前版本的 root_dir (仍引用 dir2 )与当前版本(您在其中rmname dir2 的版本)以重新创建新版本并在其中获得 dir2 。That remove the reference to dir2 in the new version of root_dir, making dir2 and all its content invisible (not reachable).And you can easily restore dir2 (and all its content) by merging the previous version of root_dir (which was still referencing dir2) with the current version (the one where you rmname'd dir2) in order to recreate a new version where you get back dir2.注意:使用 rmname 时,您可能会看到一条错误消息即使该元素未在您执行操作的分支中签出,该元素也已签出 rmname 。 使用 rmname -force 是仍然执行rmname的解决方案:请参阅此技术说明。Note: when using rmname, you might have an error message mentioning that the element is in checked out, even though it is not checked out in the branch where you are doing the rmname.using rmname -force is the solution to still perform the rmname: see this technote. 这篇关于Clearcase删除目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!