bitbucket - Git importing repositories as branches -


i have repo1, repo2, repo3, , repo4. want keep repo1 , make repo2, repo3, , repo4 different branches of repo1, without losing tags or commits exist in repo2, repo3, , repo4.

repo1-master branch (contains tags , commits of repo1) |__branch2 (contains tags , commits of repo2) |__branch3 (contains tags , commits of repo3) |__branch4 (contains tags , commits of repo4) 

does each of them retain historical commits, dates, , tags? can choose specific branch push code in future, issues?

it works if other repos have each 1 branch (typically master).
can fetch them in repo1, , add master branch new orphan branch, have own independent history.

cd repo1 git remote add repo2 ../path/to/repo2 git fetch repo2 git branch brrepo2 repo2/master git push -u origin brrepo2 git push --tags 

Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -