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?

  1. create branch on target repo
  2. add source repo remote of target repo (lookup git remote, can add local repositories well)
  3. link source branch , target branch git branch -u
  4. git pull target branch.

you may have resolve conflicts , perform merge, depending on changes there on either repository.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -