> For the complete documentation index, see [llms.txt](https://docs.allout.game/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.allout.game/all-out-docs/docs-zh/quan-li-yi-fu/collaborating-and-version-control.md).

# 协作与版本控制

在开发游戏时，使用像 Git 这样的版本控制工具有很多好处：

* 轻松备份并回退到之前的更改
* 与团队中的其他开发者协作
* 轻松在其他设备上打开你的项目

如果你对 Git/GitHub 不熟悉，这里有一个很棒的视频教程系列： <https://www.youtube.com/watch?v=8Dd7KRpKeaE>

首先，创建一个 GitHub 账户和一个仓库，然后授权 All Out 应用使用该仓库。

你可以前往你游戏的协作页面，并点击管理 GitHub 连接选项来进行授权。

<figure><img src="/files/e21f5d54fa9eee4313e7fc4f593b3cc3c693091e" alt="Manage GitHub connection control on the Collaborate page"><figcaption></figcaption></figure>

然后你就可以回到你游戏的协作页面，选择你之前创建的仓库：

<figure><img src="/files/613a40808770537ce28a5a637a3ef915d751e2ff" alt="Repository selector on the Collaborate page"><figcaption></figcaption></figure>

当你关联一个 Git 仓库时，该集成可以将其克隆到编辑器的 games 文件夹中，并使用分支或拉取请求来审查更改。仓库访问权限由 GitHub 安装和仓库权限控制，因此请确保每位协作者都拥有所需的访问权限。

**你也可以安装 GitHub 的桌面客户端来手动管理你的 Git 更改：**

他们的桌面客户端非常容易使用！

1. 下载 GitHub Desktop： <https://desktop.github.com/download/>
2. 添加现有仓库，或者在游戏项目文件夹中创建一个仓库。 ![Adding an existing project folder in GitHub Desktop](/files/1419257eba932e20864d705e54eafa319ff75e5d)
3. 创建初始提交，并将你的仓库发布到 GitHub！
