Pushing code from one branch of a repo to another branch of another repo

前端 未结 3 622
日久生厌
日久生厌 2021-02-05 06:59

There is a repo say ABC/A. I had forked this repo to my own github say ME/A. I was asked to create a branch on ME/A say x (originally there were develop and master). I had to wr

3条回答
  •  面向向阳花
    2021-02-05 07:39

    Yes, you can push any local branch to any remote branch. The syntax is

    git push  :
    

    If your current branch (the one you want to push) is called develop, the command would be

    git push ME develop:x
    

提交回复
热议问题