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
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
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.
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.
Great. Then delete is exactly what I'm looking for. Thank you Ana!
It looks like you're new here. Sign in or register to get started.