Reputation: 1581
Pardon for this noob question but I got no idea on how to do it..
So, I have 2 repos - repoA and repoB How do I 'install' a branch called feature/for-repoB which was in repoA and add/merge it into repoB?
Upvotes: 0
Views: 56
Reputation: 381
[please refer to comments]
simply
git remote add <repoA>
git checkout <repoA/feature-for-repoB>
git merge <branch in repoB>
resolve conflict then git add, then commit
[old answer]
I think you are trying to merge two repos, A and B.
You can usegit checkout --orphan YourBranchName
in repoB, to create a empty branch (feature/for-repoB). And add files from repoA into this branch.
Then merge them.
Please look at the --orphan option at http://git-scm.com/docs/git-checkout/1.7.3.1 and remember to backup your original repos.
Upvotes: 1