【发布时间】:2019-08-21 19:37:16
【问题描述】:
我正在开发一个功能分支(我们称之为 DEV-1234),尚未进行任何更改,休息几天后恢复工作,当然开发分支中有大量更改,我想合并到我的功能分支,以便开始使用最新版本的代码。
所以,我这样做了:
git checkout develop
git pull
git checkout feature/DEV-1234
git merge develop
现在,当我检查那个分支上的 git 状态时,我得到了这个:
$ git status
On branch feature/DEV-1234
Your branch is ahead of 'origin/feature/DEV-1234' by 503 commits.
(use "git push" to publish your local commits)
虽然我没有任何本地提交。还是该合并算作本地提交?如果我按照它的建议在这个分支中创建git push,实际上会发生什么?
【问题讨论】:
-
提示:pull 不是 fetch。
-
@matt 在看到该消息后,我实际上尝试在两个分支上获取,但情况仍然相同。我的开发与 origin/develop 是最新的。
标签: git git-merge git-push git-pull feature-branch