I have three repositories with a large git branching model each and I want to join the complete history of all branches of each repository into one of them.
The purpose of this task is to move one repository to Github and to have all the respective history of branches into one bare repository .
Thanks in advance
EDIT: this question [How do you merge two Git repositories? but I've checked the question and: a- Submodules scheme is not what we are looking for. b- Subtree scheme dows not bring the complete history of branches to one unified origin.
The question answer of Andresch Serj is in the path I believe to what I need. However with this solution I cannot as far I know all the remote branches from one origin into the other if I don't checkout each and then push to the other origin repo. I need, if it is possible, an automated way of doing that.