# Importing from Kinsta deletes hidden git folder

**URL:** <https://community.kinsta.com/t/importing-from-kinsta-deletes-hidden-git-folder/3372>\
**Category:** Application Support\
**Created:** [April 29, 2024, 9:56am UTC](https://community.kinsta.com/t/importing-from-kinsta-deletes-hidden-git-folder/3372 "2024-04-29T09:56:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/joe/32/3266_2.png) [@Joe](https://community.kinsta.com/u/Joe)\
**Post date:** [April 29, 2024, 9:56am UTC](https://community.kinsta.com/t/importing-from-kinsta-deletes-hidden-git-folder/3372/1 "2024-04-29T09:56:17Z")

</div>

After a few issues related to importing sites from Kinsta that have recently been resolved, I’m now encountering another issue.

I imported the site and verified it was working correctly, before hooking it up to version control, with the .git folder in the site’s root folder. I then ran an import from Kinsta to pull down the latest media files and WordPress database, but found that the import has deleted the .git folder.

I brought the git folder back over to the project, then did another import, but this time, rather than leaving it as all files checked, I cherry-picked just the /wp-content/ folder. However, the git folder was still deleted as soon as the import hits the “downloading remote site” section.

I’ve tested this a few times with different folders/files in the root, and the result is the same each time. Is there something I am missing here? Is there a way to ensure that files/folders aren’t deleted, as it’s extremely frustrating to see the git folder being wiped each time?

**Machine OS version:** 14.4.1 (23E224)  
**Devkinsta version:** Version 2.13.2 (2.13.2.8698)  
**Docker Desktop version:** Docker Desktop 4.29.0 (145265)

Happy to provide log files via DM if needed.

Thanks  
Joe

---

<div class="post-metadata">

**Author:** ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)\
**Post date:** [April 29, 2024, 1:53pm UTC](https://community.kinsta.com/t/importing-from-kinsta-deletes-hidden-git-folder/3372/2 "2024-04-29T13:53:37Z")

</div>

Hello Joe,

I was able to replicate this. I will report this to our developers and update you once they write back. There’s no ETA, unfortunately, but I will let you know as soon as this is reviewed. Thank you for bringing this to our attention.

Kind regards
