# Unable to rebuild discourse

**URL:** <https://meta.discourse.org/t/unable-to-rebuild-discourse/344214>\
**Category:** Product Support\
**Created:** [December 24, 2024, 2:33pm UTC](https://meta.discourse.org/t/unable-to-rebuild-discourse/344214 "2024-12-24T14:33:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
**Post date:** [December 24, 2024, 3:30pm UTC](https://meta.discourse.org/t/unable-to-rebuild-discourse/344214/4 "2024-12-24T15:30:13Z")

</div>

You should have seen something like this:

```plaintext
# git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean

```

so I think somehow your /var/discourse directory is broken - is no longer connected to the repo. Did you somehow tidy up, lose, or rename the .git subfolder?

---

_[View the full topic](https://meta.discourse.org/t/unable-to-rebuild-discourse/344214)._
