开发者

switch subtree to different remote branch

开发者 https://www.devze.com 2022-12-18 09:19 出处:网络
Consider this part of a repos开发者_运维技巧itory of mine: / myproject django -> django/master (django/django @github)

Consider this part of a repos开发者_运维技巧itory 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号