My scenario:
I have two existing Git repos:
Project-A
Project-B
I have merged Project-A into Project-B via a subtree-merge with no issues. Mostly following the 3rd answer here:
How do you merge two Git repositories?
But I need to merge Project-A into a folder I made within Project-B. Not within Project-B itself. What I keep getting looks like this:
Project-B
- Components - self made folder via git add component/README
- Project-A
The structure I need is this:
Project-B
- Components - self made folder via git add component/README
- Project-A
I've been merging Project-A from within the Components folder so I'm not sure why when I push I keep getting Project-A outside of Components?
Also, when I am merging Project A. I would like to merge all branches at the same time, I've been trying "git merge Project-A" but I get a message saying Git can't do that. So I have to do something like "git merge Project-A/master". But there are 20 different branches within Project-A that I need to push into the component folder. Possible to merge all branches at one time?
Thanks