如何通过拉取请求合并本地分支后删除它? git-flow,bitbucket,sourcetree

问题描述 投票:1回答:1

我在本地的环境:

  • GitBitbucket
  • 连接
  • [Sourcetreegit-flow

步骤

  1. 我在Sourcetree中创建一个feature x,然后添加代码。
  2. [我执行一个commit,包括对create a pull requestpush的选项,对feature x中对remote分支的更改。
  3. pull request中,我选择Close {branch} after the pull request is merged的选项。
  4. Bitbucket]内,成员团队批准pull request,然后将其合并到develop分支中。
  5. pull对我的本地develop分支的新更改。
  6. NOTE

在将代码合并到pull request之前,请先仔细阅读develop的代码,所以问题是:

feature x中创建了pull后,是否有任何方法可以自动删除本地的develop分支?

*我尝试过使用fetch,但它不起作用。

我在本地的环境:Git通过git-flow与Bitbucket Sourcetree连接步骤:在Sourcetree中创建功能x,然后添加代码。我进行的提交包括创建拉式选项的提交...

git bitbucket atlassian-sourcetree git-flow
1个回答
1
投票

一种简单,非自动化的解决方法是在本地存储库中定期运行分支清理命令,例如

© www.soinside.com 2019 - 2024. All rights reserved.