1. Learn center
  2. Software Development
  3. Guides
  4. Git tutorial
  5. Git 协作
  6. 分支的工作流程
  7. 主分支(main)
Git

Project and code management together.

Try it free

主分支(main)

在存储库中进行第一次提交时,默认情况下 Git 会自动创建一个主分支。随后的提交将在主分支下进行,直到您决定创建并切换到另一个分支。

驻留在主分支的代码库是生产就绪的。当最新的提交准备好用于特定版本时,它将被赋予一个发布标签。

Changes are committed to the main branch.
更改已提交到主分支。

Subscribe to our newsletter

Learn with Nulab to bring your best ideas to life