# Theme export deletes .git directory

**URL:** https://forum.pinegrow.com/t/theme-export-deletes-git-directory/7435
**Category:** Bug Reports
**Created:** [December 15, 2022, 1:48pm UTC](https://forum.pinegrow.com/t/theme-export-deletes-git-directory/7435 "2022-12-15T13:48:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![marcelreschke](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/marcelreschke/32/4924_2.png) [@marcelreschke](https://forum.pinegrow.com/u/marcelreschke)
#### Post date: [December 15, 2022, 1:48pm UTC](https://forum.pinegrow.com/t/theme-export-deletes-git-directory/7435/1 "2022-12-15T13:48:54Z")

</div>

Every time I export the theme, the .git directory is deleted.

Is there a possibility to stop Pinegrow from doing this?

Something like a ignore file would be great.

---

<div class="post-metadata">

### Author: ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)
#### Post date: [December 15, 2022, 5:11pm UTC](https://forum.pinegrow.com/t/theme-export-deletes-git-directory/7435/2 "2022-12-15T17:11:46Z")

</div>

@marcelreschke is the .git folder in wp-content/theme/[project] folder?

The folder is cleared on every export, so that any unused old exported files are cleared. For example, without this, renaming single.html to page.html would leave both single.php and page.php in the theme. This leads to very confusing situations.

---

<div class="post-metadata">

### Author: ![marcelreschke](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/marcelreschke/32/4924_2.png) [@marcelreschke](https://forum.pinegrow.com/u/marcelreschke)
#### Post date: [December 16, 2022, 6:05am UTC](https://forum.pinegrow.com/t/theme-export-deletes-git-directory/7435/3 "2022-12-16T06:05:38Z")

</div>

Exactly, and I understand that. But it would be nice to have an ignore file or at least have an option to leave the .git folder untouched.
