推送到功能分支而不合并

时间:2019-06-03 15:15:32

标签: git

我的项目有一个masterdevelop和功能分支。我从issue-141派生了一个新的功能分支develop,并对其进行了3次提交。当我从该功能分支推送时,我希望将提交推送到origin/issue-141,但是它将尝试推送到develop(我无权访问)。有人可以向我解释为什么会这样吗?为什么我不能简单地远程推送到同一issue-141分支?

这是git remote show origin的输出:

  * remote origin
  Fetch URL: https://github.com/XXX
  Push  URL: https://github.com/XXX
  HEAD branch: master
  Remote branches:
    develop                tracked
    external_http_enricher tracked
    issue-141              tracked
    master                 tracked
    partijgedrag           tracked
    production             tracked
    v0                     tracked
  Local branches configured for 'git pull':
    develop   merges with remote develop
    issue-141 merges with remote issue-141
    master    merges with remote master
  Local refs configured for 'git push':
    develop   pushes to develop   (up to date)
    issue-141 pushes to issue-141 (up to date)
    master    pushes to master    (local out of date)

0 个答案:

没有答案