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

# 创建第二个部署时私有仓库未出现

> 重新授权 Mintlify 以获得私有仓库访问权限，使现有的私有 GitHub 仓库出现在新部署的引导仓库选择器中。

当你从同一个已经支撑现有部署的私有 GitHub 仓库创建第二个 Mintlify 部署时，引导流程中的仓库选择器可能不会列出该私有仓库。这是因为你最初的 GitHub 授权只授予了 `public_repo` 权限，而重新进入引导流程会复用已有授权，而不会再次请求私有仓库访问权限。

你可以从同一个仓库创建多个独立的部署。Mintlify 并不要求每个部署使用一个新仓库。如果需要将多个仓库合并到一个站点，请参考 [Multi-repo 设置](/docs/zh/deploy/multi-repo)。

<div id="re-authorize-with-private-repo-access">
  ## 使用私有仓库权限重新授权
</div>

在已登录 Mintlify 控制台的情况下访问此 URL：

```
https://app.mintlify.com/api/onboarding/github/authorize?private=true
```

查询参数 `?private=true` 会请求 GitHub 的 `repo` 权限，该权限授予对私有仓库的访问。GitHub 会提示你授权该额外权限，然后将你返回到控制台。

重新授权后：

1. 返回到你新部署的引导流程。
2. 重新打开仓库选择器。你的私有仓库现在可以选择了。
3. 继续完成引导流程以创建第二个部署。

<div id="if-the-repository-still-doesnt-appear">
  ## 如果仓库仍未出现
</div>

如果重新授权后选择器仍未列出该仓库，则可能需要更新该仓库所在组织上的 Mintlify GitHub App 安装，将该仓库纳入其中：

1. 打开 [GitHub App 设置](https://github.com/apps/mintlify/installations/new)，选择拥有该仓库的组织。
2. 在 **Repository access** 下，选择 **All repositories**，或在 **Only select repositories** 中添加该特定仓库。
3. 保存更改，然后重新打开仓库选择器。

如需完全重置 GitHub App 连接，请参见 [GitHub App 连接问题](/docs/zh/deploy/github#github-app-connection-issues)。


## Related topics

- [部署](/docs/zh/deploy/deployments.md)
- [选项卡](/docs/zh/components/tabs.md)
- [skill.md](/docs/zh/ai/skillmd.md)
