What strategy should I use to copy a git branch from one repo into a branch of another repo? -


i have git branch need copy 1 repository branch within repository.

from: repo_a branch: develop

top: repo_b branch: whatever

i cannot mirror repo_a repo_b repo_b has restrictions on commits, must go branch, approved others, , merged master branch.

what best way go doing this? should clone repo_a, checkout branch 'develop', create branch on repo_b , copy contents of 'develop' new branch , push changes? or there better strategy?

you add other remote can call repo_a on local git, pull repo_a new branch can call branch_repo_a,

make new branch branch want merge let's in repo_b have branch dev checkout new branch repo_b/dev can call dev_a_b (do new branch repo_b in case somenthing goes wrong merge)

then merge in dev_a_b git merge branch_repo_a

and there have code merge, did not ask merge suggestion, :)


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 -