git push to specific branch

后端 未结 4 1108
礼貌的吻别
礼貌的吻别 2021-01-29 22:39

Even after reading this question: git-push-current-branch, I am still having difficulty figuring out how I should write my git push command. As mentioned in the question link, i

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-29 22:49

    If your Local branch and remote branch is the same name then you can just do it:

    git push origin branchName
    

    When your local and remote branch name is different then you can just do it:

    git push origin localBranchName:remoteBranchName
    

提交回复
热议问题