> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trae.cn/llms.txt
> Use this file to discover all available pages before exploring further.

你可以使用源代码管理功能（Source Control），包括提交、分支和标签、远程仓库等，来管理项目中的代码变更。
## 激活源代码管理功能 {#b25a65ec}

1. 在 TRAE 中打开你的项目。
2. 从左侧的导航栏中，选择 **源代码管理**。
   界面上显示 **源代码管理** 面板。
   ![Image=2880x1799](https://p9-arcosite.byteimg.com/tos-cn-i-goo7wpa0wc/3cb2a6a111e043599beabf8d90aef7c6~tplv-goo7wpa0wc-image.image)
3. 激活源代码管理功能。根据实际需求，从以下方式中选择：
   * 若当前打开的文件夹中没有 Git 仓库，点击 **初始化仓库** 按钮以初始化一个仓库。
      初始化完成后，该项目便激活了源代码管理功能。
   * 点击 **发布到 GitHub** 按钮，直接将此文件夹发布到 GitHub 仓库。
      发布完成后，该项目便激活了源代码管理功能。

## 使用 AI 生成提交内容 {#1d5f1987}
提交内容（即 Git Commit 消息）是对仓库内容变更的总结。每次提交代码时，都需要提供准确的 Git Commit 消息，以便识别具体的变更项。你可以通过 AI 一键总结仓库变更，然后生成 Git Commit 消息的初稿。
![Image=2880x1800](https://p9-arcosite.byteimg.com/tos-cn-i-goo7wpa0wc/2ae122517a1d4b2ea1b2d17d85fb58a7~tplv-goo7wpa0wc-image.image)

