How to i close a branch in in the new bitbucket ui?

Martise McMurrian March 30, 2018

Trying to figure out how to close a branch. I can't do it without selecting that option on the pr. I had a branch that i forgot to click close branch on merge when creating the PR. Now i can't figure out how to close the branch after the merge. The steps on the site were incorrect. https://confluence.atlassian.com/bitbucket/manage-unmerged-branches-389778602.html

1 answer

1 accepted

2 votes
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 3, 2018

Hi Martise! Have you merged the pull request already? If not, you can navigate to the PR, click on Edit on the right hand side and then check the box to close that branch. 

If you have merged it already and the branch is still showing in the Branches menu, then you can hover over this branch and you'll see an ellipsis menu (...) on the right, click there and you'll be able to delete the branch.

Hope that helps!

Ana

Martise McMurrian April 3, 2018

Hi Ana! Yes, the pull request has been merged. So I cant close it that way. If I delete the branch, wont i loose all of the commits that were made along the way? That's why I'm trying to close the branch, to preserve the commit history.

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 3, 2018

Hi @Martise McMurrian, if you've already merged it then the commits won't be lost. Also, "close a branch" and "delete a branch" is the same in this case. You can read more about how Git handles this here and here

Hope that helps!

Ana

Like # people like this
Martise McMurrian April 3, 2018

Great. Then delete is exactly what I'm looking for. Thank you Ana!

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2018

Glad I could help you! Have a good day :)

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events