Open SimonLab opened 2 years ago
I'm able to manually rename the default branch master
> main
:
https://gitea-server.fly.dev/demo-org/hello-world/settings/branches
According to https://github.com/go-gitea/gitea/issues/9542#issuecomment-569593916
We could just not init a repo and then do a manual init with the branch defined as main
💭
A bit more digging ... https://docs.gitea.io/en-us/config-cheat-sheet/#repository-repository
we need to update app.ini
to include the line:
DEFAULT_BRANCH: main
@SimonLab going to leave this with you to attempt and document. 👍
Thanks for all the research @nelsonic ,I'll have a try with Gitea config DEFAULT_BRANCH
value
The
main
branch name has become the default name for the default repository branch.main
instead ofmaster
when a new repository is created