Let's say I have project on
c:/project/project1
and c:/project/project2
And then I create another project c:/project/project3
Assume short form of the word
BR = Branch
RB = Rebase
CP = Copy
[All word & letter inside this [] refer to branch name]
Let say project1
has the following commit that has been rebase
INIT--p11---------------------RB BR A--[MASTER]
\--p12--p13--p14 [BR A] / \--p15-- [BR B]
And Let say project2
has the following commit that has been rebase
INIT--p20--------------------RB BR C-----------------RB BR D--p24--[MASTER]
\--p21--p22 [BR C] / \--p23-- [BR D] /
My question is:
How do I copy the repository on BR A
and BR D
only or maybe with some commit p24
to project3
with their files (changed / newly created)
The way I hope in project3
, the copy branch from another repository should not go to master but on individual branch, then later on to be merge with master and rebasing. I illustrate the structure above on project3
INIT-----------------------------RB BR A--p31--p32--RB BR D--p24--[MASTER]
\--p12--p13--p14 [CP BR A]--/ /
\--p23 [CP BR D]-----------------------------/
I've see guide on how to copy/move/clone repository to another from remote/online repo. But I don't found any relate to local repo.