如何删除 Bazaar 中未版本控制的文件?

发布于 2024-08-16 06:49:21 字数 105 浏览 1 评论 0原文

如何从 Bazaar 工作区中删除所有未版本控制的文件?我正在寻找相当于 hg purge --allgit clean -fd 的操作。

How can I remove all unversioned files from a Bazaar workspace? I'm looking to do the equivalent of hg purge --all or git clean -fd.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

沩ん囻菔务 2024-08-23 06:49:21

我只在 BzrTools 中看到过这个,作为 clean-tree 命令。

I've seen this only in BzrTools, as the clean-tree command.

在风中等你 2024-08-23 06:49:21

本杰明·波拉克说道:

根据bzr帮助,我没有
清理树命令。然而bzr帮助
clean-tree 向我显示了帮助
clean-tree,并执行 bzr
clean-tree 工作得很好。

bzr help 仅显示最常用命令的摘要。要查看所有可用命令,请使用 bzr 帮助命令

(很抱歉回答而不是评论......我还没有足够的声誉)

Benjamin Pollack said:

According to bzr help, I have no
clean-tree command. Yet bzr help
clean-tree shows me the help for
clean-tree, and executing bzr
clean-tree works just fine.

bzr help only shows a summary of the most commonly used commands. To see all available commands, use bzr help commands.

(Sorry to answer instead of comment ... I don't have sufficient reputation yet)

内心旳酸楚 2024-08-23 06:49:21

我为此写了一篇bash one liner:

rm -i $(bzr status -S | grep "^?" | cut -d ? -f 2- )

I wrote a bash one liner for this:

rm -i $(bzr status -S | grep "^?" | cut -d ? -f 2- )

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文