I am use gitea 1.22.1, started by docker-compose.
whenever I create branch in GUI or create in local and then push to gitea, there is only main branch shows in GUI.
I have the same.
I was the case in version 1.21.11.
I updated to 1.23.4 and it is still the case