There was a file with sensitive information that i accidentally uploaded to github so i tried to remove it by following the steps from this https://github.com/IBM/BluePic/wiki/Using-BFG-Repo-Cleaner-tool-to-remove-sensitive-files-from-your-git-repo When i ran the last part it deleted all my branches except for the main branch and my current working branch.
I tried to reflog but there wasn't a commit that included the deletion of the branches.