I've been accumulating related experiments in a directory structure and as I go, I create a gist so I can demo the experiment on bl.ocks.org.
When I create the gist, I add it as a remote for the subfolder's repo. That way I can include checking the bl.ock in my iterations by pushing to the remote (gist).
The result is a directory tree with lots of repos in it and these individual repos sometimes have multiple branches. Also, some of the subfolders are not repos.
Now, I want to consolidate the experiments in a master github repo. So i created a repo on github, set it as the remote, pulled merged etc., and then pushed.
All of the non-repo folders pushed ok, but all of the folders in the tree that contained a .git folder did not push properly: they are there in the github repo but they are "greyed out". I recognise this from when I have a repo with multiple branches where folders that do not exist on the selected branch are "greyed out" in the same way: presumably this is github's way of representing empty folders.
How can I handle this? I understand that I can't have multiple branches at a subfolder level... do I need to create branches in the master repo by merging one of the branches in the subfolders? How is this meant to work?
I would have thought that git would just push the current checked-out state of the subfolder repos and look towards the root for gitness... thus, the subfolders would not be treated as repos from the perspective of the parent.
Is there a way that I can integrate the subfolder branches into the new structure for example?