# Master / main branch

**URL:** <https://forum.gitea.com/t/master-main-branch/4195>\
**Category:** Gitea Usages\
**Created:** [December 6, 2021, 5:50pm UTC](https://forum.gitea.com/t/master-main-branch/4195 "2021-12-06T17:50:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![24unix](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/24unix/32/1884_2.png) [@24unix](https://forum.gitea.com/u/24unix)\
**Post date:** [December 6, 2021, 5:50pm UTC](https://forum.gitea.com/t/master-main-branch/4195/1 "2021-12-06T17:50:10Z")

</div>

Hi,  
I just created a new repo, noticed, that it created a main branch instead of master.  
I know of the political discussion behind, but I want the old behavior back.  
Is that possible?

Kind regards.

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [December 8, 2021, 8:35am UTC](https://forum.gitea.com/t/master-main-branch/4195/2 "2021-12-08T08:35:55Z")

</div>

Yes, you can change the default branch name from ini configuration file.

---

<div class="post-metadata">

**Author:** ![24unix](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/24unix/32/1884_2.png) [@24unix](https://forum.gitea.com/u/24unix)\
**Post date:** [December 8, 2021, 9:53am UTC](https://forum.gitea.com/t/master-main-branch/4195/3 "2021-12-08T09:53:23Z")

</div>

Thanks, now I found the cheat sheet for app.ini. There the default branch name is still master, also when you create a new repo, the text below talks about master.

However, I set in [repository] DEFAULT\_BRANCH = master and it worked.
