Combine add git repository one repo as branches -
i have 2 directories, each own git repo, have realized 2 parts/versions of same project. i'd add them sub-directories new project folder, while preserving commit history of each.
ideally, project_a , project_b branches of same parent git repository.
existing file structure:
project_a | --.git | --project_b files project_b | --.git | --project_b files
taraget file structure:
parentprojectfolder |--project_a | | --project_a files |--project_b | | --project_b files
can done?
- create branch on target repo
- add source repo remote of target repo (lookup git remote, can add local repositories well)
- link source branch , target branch
git branch -u
git pull
target branch.
you may have resolve conflicts , perform merge, depending on changes there on either repository.
Comments
Post a Comment