We had a heap dump in very old branch. I deleted the pull request and then the branch from bitbucket UI. But commit remained dangling now.
Commit is accessible from bitbucket ui and shows "This commit is not reachable from any branch or tag in this repository. It may be from a fork outside of this repository."
We then tried to create a branch from old local copy the repo and pushed it. It got pushed. Now commit was not dangling anymore.
then used BFG repo cleaner. It removed the large files from the branch. But now again bitbucket shows dangling commit with same error message, commit is not reachable. Spent 2 days on it so far no luck