git 如何更新 bitbucket 上的拉取请求?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22357536/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 09:50:14  来源:igfitidea点击:

How to update a pull request on bitbucket?

gitbitbucketpull-request

提问by mostwanted

How do you update one of your own pull requests on bitbucket in your IDE on your local computer?

您如何在本地计算机上的 IDE 中更新您自己对 bitbucket 的拉取请求之一?

This workflow does not work as i expected:

此工作流程无法按我的预期工作:

  1. Clone your fork
  2. Checkout the branch you used for the pull request
  3. Make changes
  4. git add .
  5. git commit
  6. Push commit (to your fork repository)
  1. 克隆你的叉子
  2. 签出您用于拉取请求的分支
  3. 做出改变
  4. git 添加。
  5. 提交
  6. 推送提交(到您的 fork 存储库)

So far so good but it seems that the pull request is not updated automatically as soon as the branch (on which the pull request is based) is updated.

到目前为止一切顺利,但似乎只要分支(拉取请求所基于的分支)更新,拉取请求就不会自动更新。

Question: is there a way to let pull requests be updated (autoatically/manually) as soon as the branch (on which the pull requests is based) is updated?

问题:有没有办法让拉取请求在分支(拉取请求所基于的)更新后立即更新(自动/手动)?

回答by Pablo Riutort

Seems to me you asked a bit early.

在我看来你问得有点早。

http://blog.bitbucket.org/2014/04/22/bitbucket-now-auto-updates-pull-requests/

http://blog.bitbucket.org/2014/04/22/bitbucket-now-auto-updates-pull-requests/

After updating my local branch and push, Bitbucket updated the pull-request automatically.

更新我的本地分支并推送后,Bitbucket 自动更新了拉取请求。