【发布时间】:2018-11-28 09:58:00
【问题描述】:
我有一个主分支和一个开发分支。 我目前在我的开发分支中。
当我做git push 时,我得到以下建议:
fatal: The upstream branch of your current branch does not match the name of your current branch. To push to the upstream branch on the remote, use
git push origin HEAD:master
To push to the branch of the same name on the remote, use
git push origin development
所以我输入git push origin development 推送到开发分支。但我只是想输入git push 来推送到当前分支(开发)。
当我输入 git status 时,我会收到以下消息:
Your branch is ahead of 'origin/master' by 26 commits.
所以我做了一个从开发到主分支的拉取请求,并将开发分支合并到主分支。但我仍然收到消息“您的分支领先于...”。
我在这里做错了什么?
谢谢
【问题讨论】:
标签: git bitbucket git-branch