Git flow with Bitbucket pull requests

2019-06-13 07:54发布

问题:

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?

And what is a correct way to accept a PR in future while following the git flow workflow?

回答1:

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.