---
agent:
  instructions: "Search published articles with space-separated keywords. All terms must occur in the article text. Results are Markdown excerpts with canonical links, newest first."
  endpoint: "https://www.zaihua.news/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://www.zaihua.news/docs/api/#agent-search"
---

# Git 3.0 将默认使用 main 作为初始分支名称

Source: https://www.zaihua.news/article/37661/

[返回新闻流](https://www.zaihua.news/)
2025年11月24日 · 18:05 · [在花新闻](https://www.zaihua.news/about/)

# Git 3.0 将默认使用 main 作为初始分支名称

Git 项目宣布，从 Git 3.0 版本开始，新建仓库将默认使用 main 作为初始分支名称，而非传统的 master。这一变更在本周发布的 Git 2.52 版本补丁说明中正式确认。

该变更早有预兆。软件自由保护协会在 2020 年 6 月宣布 Git 将更新默认分支名称，GitHub 随后在同年 10 月率先将新仓库默认分支改为 main。Git 3.0 预计将在 2026 年底发布，除分支名称变更外，还将采用 SHA-256 哈希函数提升安全性，并优化存储格式以更好支持 macOS 和 Windows 系统。

[thoughtbot](https://thoughtbot.com/blog/git-3-0-will-use-main-as-the-default-branch)

🍀[在花频道](http://t.me/zaihuanews) 🍵[茶馆](http://t.me/zaihuachat) 📮[投稿新鲜事](http://t.me/ZaiHuabot)

https://cdn.zaihua.news/main/37661/4983768269919554317.jpg

[上一条Ubisoft 推出 AI 实验项目 Teammates，让 NPC 成为真正队友](https://www.zaihua.news/article/37660/)[下一条微信 Testflight 更新](https://www.zaihua.news/article/37662/)
