Hmm I am also a bit puzzled, @vice . I am asking a GitLab expert right now so hopefully I will be able to get back to you soon with an official solution.
In the meantime, I wonder if you were able to try something like git-lost-found (link to git documentation here) in order to recover it? I would have done the same as you and first tried reflog, but it sounds like that didn’t work?
Let me know what else you have tried, and hopefully by the time we re-connect, we will have made some headway on our side. Thanks! and welcome to our forum!
Hi @vice and @Linds
Usually, removing a git branch means removing the link between the branch name and the last commit of this branch. The code is not removed, only the easy link the find it.
Every commit have a SHA1 related (something like c675144fbd35c007f910f7ffa34c251d7dd74073) that can be used to find it.
If you know the SHA of the last commit of the branch, you can just do
git checkout -b <branch> <sha>
to create a new local branch like the remote branch removed