# Local overriding pulled github files

**URL:** <https://community.localwp.com/t/local-overriding-pulled-github-files/44705>\
**Category:** Support\
**Created:** [September 25, 2024, 3:20am UTC](https://community.localwp.com/t/local-overriding-pulled-github-files/44705 "2024-09-25T03:20:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![khyleB](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@khyleB](https://community.localwp.com/u/khyleB)\
**Post date:** [September 25, 2024, 3:20am UTC](https://community.localwp.com/t/local-overriding-pulled-github-files/44705/1 "2024-09-25T03:20:55Z")

</div>

I’ve been backing up my site on github periodically and completely mucked it up experimenting with a new theme so I pulled the last version I’d pushed to github and when I run the site it still shows all the changes I wanted to get rid of. I assume localhost is backing up and syncing its own changes somehow but I don’t know how to get it to stop doing that. Maybe my assumption is wrong but that’s my best guess.

I’ve tried resetting (git reset --hard origin/main) and when I launch the site it still reverts. My knowledge on this kind of stuff isn’t too in-depth so I’m pretty out of my element here.

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

I’m not really sure how I would replicate it in another folder, I guess I could make another site, push changes and download it to see if it happens with another site? I have tried multiple times with the same site and the result is always the same.

* * *

### System Details

- **Local Version:** Version 9.0.5+6706

- **Operating System (OS) and OS version:** Acer Aspire TC-885 Version 22H2

* * *

### Local Logs

[local-logs.zip](https://community.localwp.com/uploads/short-url/43spnytwykwxTM6jky20EKAwa0s.zip) (111.7 KB)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [September 25, 2024, 1:31pm UTC](https://community.localwp.com/t/local-overriding-pulled-github-files/44705/2 "2024-09-25T13:31:41Z")

</div>

Hi @khyleB

We have a help article on working with Local and Github here;

> **[Develop with Local and GitHub](https://localwp.com/help-docs/advanced/developing-with-local-and-github/)**
>
> Local makes it easy for you to quickly get to the business of creating and managing a WordPress site on your local machine and lets you efficiently deploy your site to remote servers on Flywheel and…

Additionally some excellent content here from one of our Developer Advocates on this as well:

[![](https://img.youtube.com/vi/cXsrNHBewMc/maxresdefault.jpg "Set up a Git-based workflow with Local and GitHub Actions") ](https://www.youtube.com/watch?v=cXsrNHBewMc)

For future reference, for just creating site backups we also have a baked in Cloud Backups feature you could utilize as well:

[Cloud Backups](https://localwp.com/help-docs/local-add-ons-help/cloud-backups/)

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [December 24, 2024, 1:32pm UTC](https://community.localwp.com/t/local-overriding-pulled-github-files/44705/3 "2024-12-24T13:32:07Z")

</div>

Closed on December 24, 2024, 1:32pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
