My team is working with feature branches and suddenly this afternoon 10+ branches were deleted from the origin. Only two branches remained. There are no logs of these branches being deleted and we are baffled as to why this happened. Thankfully our local branches have persisted and new commits push these branches back to the origin.
Has anyone else noticed this recently? Can anyone bring some insight into why this might be?
Your branches within Bitbucket may have been cleaned up depending on which options were selected when the branch was closed or the pull request was merged back. If none of the new commits in the branches made it back to master or other, then chances are the branches were closed or deleted. If the changes did make it to master or other then most likely the pull requests had been merged back.
If the branches were deleted, there is a procedure which can be used to restore the deleted branches. You may find this procedure at How to restore a deleted branch.
As far as the audit logs in Bitbucket cloud, the only logging which is recorded to the audit log is as follows:
- Basic account information (name, location, website) updates
- Changes to email addresses
- Links with third party accounts (Google, Twitter, Facebook)
- Addition of OAuth services integrations
- Groups & general access list changes
- Creation and deletion of repositories
Source documentation: New audit logs give you the who, what, when, and where?
If you need to know what happened, we can open a support request on your behalf to discover what took place. If you would like done, please let us know.
Hello Community, I’m Anton Genkin, a product manager on the Bitbucket Server and Data Center team and am excited to share that Bitbucket Server 7.0 is now available! It's a platform release, one th...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events