tback
tback

Reputation: 11561

switch subtree to different remote branch

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.

Upvotes: 0

Views: 329

Answers (1)

Randal Schwartz
Randal Schwartz

Reputation: 44056

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

Upvotes: 2

Related Questions