开发者

switch subtree to different remote branch

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜