问题描述
我使用 git flow feature finish
来完成一个功能分支。我使用git-flow的AVH分支,它删除了远程功能分支 - 但Bitbucket的请求仍然打开。如何关闭Bitbucket的拉取请求?
I used git flow feature finish
to finish a feature branch. I use the AVH fork of git-flow, which deletes the remote feature branch - but the Bitbucket pull request is still open. How should I close the Bitbucket pull request?
在遵循git flow工作流的情况下接受PR的正确方法是什么?
And what is a correct way to accept a PR in future while following the git flow workflow?
推荐答案
当您执行 git flow feature finish ,奇怪的是,它不会推动任何东西。它将你留在master分支上,所以一旦你完成了
git push
或 git push origin master:master
, BitBucket拉取请求将自动标记为合并,关闭它。没有必要修改提交消息 - 它使用标准提交消息。
While the AVH version of git-flow deletes the remote feature branch when you do
git flow feature finish
, strangely, it doesn't push anything. It leaves you on the master branch, so once you've done git push
or git push origin master:master
, the BitBucket pull request will automatically be marked as merged, which closes it. It is not necessary to amend the commit message - it works with the standard commit message.
这篇关于Git流与Bitbucket拉请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!