Bazaar文件夹重组

发布于 2024-10-12 23:58:06 字数 539 浏览 5 评论 0原文

我只是将 bzr 用于我的个人项目。我有一个项目文件夹,并且有几个子目录。我首先(错误地)在每个子目录中执行了 $ bzr init ,并提交了多次。

现在我想在项目目录中$bzr init,包括所有子目录。但由于每个子目录已经有 .bzr 的东西,当我在项目目录中添加 $ bzr add 时,它不会包含这些子目录。

如果我只删除子目录中的所有 .bzr 文件夹,则可以添加它们,但随后我将丢失所有历史记录。我想知道是否有什么办法可以合并这个?

也许我的问题不够具体。我想将一个文件夹(例如“writing”)拉入文件夹“project/writing”。以前,writing 是顶层文件夹,但我想让项目成为顶层文件夹,并将writing 作为子目录。

我尝试了 mkdir project、cd project、bzr init、mkdirwriting,然后 bzr pull -d ./writing ../writing,但它会将文件拉入项目目录,而不是 project/writing 目录。

我对集市很陌生,如果我的解释令人困惑,我很抱歉。

谢谢你, 俊

I'm just using bzr for my personal project. I have a project folder, and I have several subdirectories. I firstly (mistakenly) did $ bzr init in each subdirectory, and commit many times.

Now I want to $ bzr init in the project directory, including all the subdirectories. But since each subdirectory already has .bzr thing, when I did $ bzr add in the project directory it would not include those subdirectories.

If I just delete all .bzr folder in the subdirectories then it would be possible to add them, but then I would lose all the history. I was wondering if there is any way to merge this?

Maybe my question was not specific enough. I want to pull a folder (for example, 'writing') into the folder "project/writing." Previously writing was the top level folder but I want to make project the top level and have writing as subdirectories.

I tried mkdir project, cd project, bzr init, mkdir writing, and then bzr pull -d ./writing ../writing, but it would pull the files into the project directory, not project/writing directory.

I'm very new to bazaar and sorry if my explanation is confusing.

Thank you,
Joon

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

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

发布评论

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

评论(1

埖埖迣鎅 2024-10-19 23:58:06

请参阅bzr帮助加入
结果是一个组合树,子树不再是独立的部分。
这被标记为子树合并到包含树中,并且所有历史记录都被保留。

see bzr help join:
The result is a combined tree, with the subtree no longer an independent part.
This is marked as a merge of the subtree into the containing tree, and all history is preserved.

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