Git Subtree. Why can't I branch from a subtree rather than the root?

Posted by dugla on Stack Overflow See other posts from Stack Overflow or by dugla
Published on 2009-10-11T19:04:37Z Indexed on 2010/04/20 16:33 UTC
Read the original article Hit count: 440

Filed under:
|

I am struggling trying to make sense of using the Git subtree strategy. My intent was to pull some disparate repos together into a little family of toy repos under an umbrella repo. I'm using the subtree strategy detailed here: http://help.github.com/subtree-merge

I am pulling my hair out trying to convince Git that I want to create a branch from one of these subtrees NOT from the root. When I cd into a subtree, create the branch, and then cd back to the root, running git branch from the root clearly indicates the branch was created at the root. Sigh.

I love git/github but it is maddening getting this seemingly routine task to work properly.

Could someone please enlighten me?

© Stack Overflow or respective owner

Related posts about git

Related posts about github