# 我 fork 了 GitHub 上的 Discourse 仓库。如何用我网站上现有的 Discourse 安装替换它？

**URL:** <https://meta.discourse.org/t/i-forked-the-discourse-repository-on-github-how-can-i-replace-it-with-the-existing-discourse-installation-on-my-site/380046>\
**Category:** Support\
**Tags:** unsupported-install\
**Created:** [2025年八月23日 20:39 UTC](https://meta.discourse.org/t/i-forked-the-discourse-repository-on-github-how-can-i-replace-it-with-the-existing-discourse-installation-on-my-site/380046 "2025-08-23T20:39:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kuaza](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuaza/32/264151_2.png) [@kuaza](https://meta.discourse.org/u/kuaza)\
**Post date:** [2025年八月23日 20:39 UTC](https://meta.discourse.org/t/i-forked-the-discourse-repository-on-github-how-can-i-replace-it-with-the-existing-discourse-installation-on-my-site/380046/1 "2025-08-23T20:39:09Z")

</div>

我 fork 了 GitHub 上的 Discourse 仓库。如何将其替换为我的网站上现有的 Discourse 安装？我尝试了所有方法，但每次都遇到错误。我将自己的 Discourse 仓库从 GitHub 添加到了 app.yml 文件中，但由于错误而无法继续。即使我设法进行了更改，它也总是重新安装原始的 Discourse。如何正确执行此过程？

> [@Can't change repo in discourse docker](https://meta.discourse.org/t/cant-change-repo-in-discourse-docker/49376/8?u=kuaza):
>
> In the past, I’ve done it by editing app.yml like this: hooks: after\_code: - exec: cd: $home/plugins cmd: - git clone https://github.com/discourse/docker\_manager.git - git clone https://github.com/scossar/localized-categories - git clone https://github.com/scossar/dictionary-card-onebox - exec: cd: $home cmd: # changes start here - git remote remove origin - git config --remove-section branch.ma…

---

_[View the full topic](https://meta.discourse.org/t/i-forked-the-discourse-repository-on-github-how-can-i-replace-it-with-the-existing-discourse-installation-on-my-site/380046)._
