For the past several days I've been trying to consolidate my class's assignment repos by nesting individually under a repo of the class name. Most of the resources I've found so far, or are suggested to me, are designed to merge two peer repos into one. This isn't what I want. My goal is to nest the assignment repos under a class repo both locally and remotely (and as I understand it; submodules would still be remotely distinct repos, which I don't want):
Now:
- assignment 1 repo
- assignment 2 repo
- assignment 3 repo
Desired:
- class repo
- assignment 1 code, branches, commits
- assignment 2 code, branches, commits
- assignment 3 code, branches, commits
I attempted to use this article's instructions, repeating step #4 for assignment 2 & 3's repos, but only the master branch was pulled down, and when I run ~/class-repo/assignment-#-repo$ git pull; an error is returned: error: Pulling is not possible because you have unmerged files..
~/class-repo$ git merge --continue doesn't fix this, it returns: error: Committing is not possible because you have unmerged files.
~/class-repo$ git fetch --all hasn't pulled down all branches for each assignment repo.
How do I preserve the commits and branches of each assignment repo while nesting them in this fashion? I keep hitting brick walls, so if it's not possible to do, I understand.