# 新建仓库默认分支是master，建议改成main

**URL:** <https://forum.gitea.com/t/master-main/5082>\
**Category:** 中文求助(Chinese Only)\
**Created:** [April 23, 2022, 1:09am UTC](https://forum.gitea.com/t/master-main/5082 "2022-04-23T01:09:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hwlv](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/hwlv/32/2594_2.png) [@hwlv](https://forum.gitea.com/u/hwlv)\
**Post date:** [April 23, 2022, 1:09am UTC](https://forum.gitea.com/t/master-main/5082/1 "2022-04-23T01:09:14Z")

</div>

新建仓库默认分支是master，建议改成main

---

<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:** [April 23, 2022, 3:23am UTC](https://forum.gitea.com/t/master-main/5082/2 "2022-04-23T03:23:54Z")

</div>

可以自己在app.ini里面配置。。。。。。。

---

<div class="post-metadata">

**Author:** ![lanten](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lanten/32/6530_2.png) [@lanten](https://forum.gitea.com/u/lanten)\
**Post date:** [December 26, 2024, 1:37pm UTC](https://forum.gitea.com/t/master-main/5082/3 "2024-12-26T13:37:17Z")

</div>

就是你小子干的好事？现在主分支名默认是main，在UI上还找不到地方设置！

---

<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 28, 2024, 5:57am UTC](https://forum.gitea.com/t/master-main/5082/4 "2024-12-28T05:57:11Z")

</div>

You can change it in app.ini as global default value or change it in repository setting per repo.

---

<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 28, 2024, 5:57am UTC](https://forum.gitea.com/t/master-main/5082/5 "2024-12-28T05:57:18Z")

</div>

Closed on December 28, 2024, 5:57am UTC


