# I forked the Discourse repository on GitHub. How can I replace it with the existing Discourse installation on my site?

**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:** Product Support\
**Tags:** unsupported-install\
**Created:** [August 23, 2025, 8:39pm 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:** 14

<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:** [August 29, 2025, 12:28pm 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/14 "2025-08-29T12:28:22Z")

</div>

Indeed, I have undertaken this task: [Overriding user\_guardian.rb in a plugin (no fork necessary!) - #24](https://meta.discourse.org/t/overriding-user-guardian-rb-in-a-plugin-no-fork-necessary/174839/29). As you suggested, I experimented with both methods. The first approach resulted in an error, as documented here: [Overriding user\_guardian.rb in a plugin (no fork necessary!) - #24](https://meta.discourse.org/t/overriding-user-guardian-rb-in-a-plugin-no-fork-necessary/174839/30).

The second method rendered the site inaccessible. I am exploring alternative solutions in my quest for resolution, but progress has been limited, prompting me to consider other avenues.

Since I prefer not to make extensive modifications, I contemplated forking Discourse. I would simply update my fork with the latest changes from the main repository each time, then reapply only the modifications I have made, accepting this approach.

My primary challenge lies in identifying an effective and correct solution. I am willing to delete and rewrite the code, trying new approaches. However, in the face of uncertain errors, I am unfortunately unable to produce a definitive resolution.

thanks

---

_[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)._
