You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hey guys,
I would like a branch to be deleted automatically from git after its contents have been merged with the main branch, but it's not.
I'm using bitbucket in the cloud, on a repository where I have admin rights. I created a branch, did a commit, opened a pull request which I myself merged, all using the web interface.
At creation of the pull request I tick the "Delete X after the pull request is merged", and at merge I tick "Close branch after commit". The merge goes fine with no errors but the branch remains in git (not in the browser list though).
Any idea what am I missing?
Thanks in advance
When you say "remains in git" - do you mean in your local repository on your workstation?
If so - that would be normal, the remote (Bitbucket) will not make any changes on your and other users workstation.
You and others will have to 'clean up' local branches. I found this article very helpful.
Hope that helps,
Best, Ulrich
Izymes - We eliminate boring from work!
Hi Ulrich,
I found the problem based on the article you linked. I wasn't aware of pruning and apparently didn't have "auto-pruning" turned on. Now all works great.
Thank you very much!
Assaf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.