我正在使用git流来管理我们的发布过程。在执行git-flow init等操作之后,我创建了一个候选发布分支
git-flow release start <label> 一切都很好。当我测试RC分支时,其他开发人员通常会在开发分支中开发下一个版本。当RC分支被宣布为好去处时,我使用
git-flow release finish –p <label> 但我有时(不总是)会犯错误
! [rejected] develop -> develop (non-fast-forward)
error: failed to push some refs to <repo-address>
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Could not push to develop from origin.当然,这将是背后的提示,因为开发人员正在进行开发。我应该告诉git-flow不要重新合并到发展中去吗?如果是这样的话,是怎么做的?如果没有,正确的工作流程是什么?
发布于 2015-06-16 19:19:37
您肯定希望重新合并到develop中,但在此之前,您将希望从开发中退出。从您的描述来看,git流看起来并不是自动完成这个任务,但是它是自动推动develop的,这是很奇怪的。无论如何,我会让您的工作流程如下:
git checkout develop
git pull
git checkout <release-branch>
git-flow release finish –p <label> https://stackoverflow.com/questions/30875425
复制相似问题