import - Combine Separate Git Repository Branches -
I have two different GIT repositories, one is mine, and "branch A", the other is developed by another person And was "Branch B". They both have the same master branch. How do I import his branch inside my GIT repository? So I should have the result: $ git branch Branch A - Branch B Master = $ git remote add otherguy git: //. .. Get the latest data: $ git fetch otherguy and then the remote branch you checkout your Want a new branch of itself: $ git checkout -b branch_bye other / branch_b