将子树切换到不同的远程分支

发布于 2024-08-19 13:40:51 字数 372 浏览 2 评论 0原文

考虑我的存储库的这一部分:

/
 myproject
 django -> django/master (django/django @github)
 ... other dependencies

django 是我按照以下说明合并的子树: 如何使用子树合并策略

现在我发现另一个依赖与django当前的master不兼容,因此我想切换到django/1.1.x 。我该怎么做?

提前致谢。

Consider this part of a repository of mine:

/
 myproject
 django -> django/master (django/django @github)
 ... other dependencies

django is a subtree that I merged following this howto: How to use the subtree merge strategy

Now I found out that another dependency is incompatible with the current master of django and I want to switch to django/1.1.x for that reason. How do I do this?

Thanks in advance.

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

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

发布评论

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

评论(1

乙白 2024-08-26 13:40:51

子模块仅指向提交。检查正确的提交,并将其添加到父模块,然后在父模块中提交。

A submodule merely points at a commit. Check out the proper commit, and add it to the parent module, and commit in the parent.

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