# Ignore .git folders as project resource?

**URL:** <https://forum.inductiveautomation.com/t/ignore-git-folders-as-project-resource/29515>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [October 30, 2019, 3:00pm UTC](https://forum.inductiveautomation.com/t/ignore-git-folders-as-project-resource/29515 "2019-10-30T15:00:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcarritt1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mcarritt1/32/4262_2.png) [@mcarritt1](https://forum.inductiveautomation.com/u/mcarritt1)\
**Post date:** [October 30, 2019, 3:00pm UTC](https://forum.inductiveautomation.com/t/ignore-git-folders-as-project-resource/29515/1 "2019-10-30T15:00:59Z")

</div>

Hi all!

Trying to get all of our projects on the same page, and our shared scripts seemed like a good place to start. I created a git repository in C:\Program Files\Inductive Automation\Ignition\data\projects\project name\ignition\script-python, but the designer/gateway throws an error about the .git folder that is created there. Is there anyway to ignore “.git”? I know that the exposure of those folders was meant for version control. Thanks.

```auto

IllegalArgumentException: com.inductiveautomation.ignition.common.project.resource.NameInvalidException: Name '.git' is invalid
	caused by NameInvalidException: Name '.git' is invalid

Ignition v8.0.4 (b2019091612)
Java: Azul Systems, Inc. 11.0.4

```

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 30, 2019, 3:06pm UTC](https://forum.inductiveautomation.com/t/ignore-git-folders-as-project-resource/29515/2 "2019-10-30T15:06:17Z")

</div>

You should be putting it higher up, in the `data/projects` folder.

---

<div class="post-metadata">

**Author:** ![mcarritt1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mcarritt1/32/4262_2.png) [@mcarritt1](https://forum.inductiveautomation.com/u/mcarritt1)\
**Post date:** [October 31, 2019, 9:59am UTC](https://forum.inductiveautomation.com/t/ignore-git-folders-as-project-resource/29515/3 "2019-10-31T09:59:48Z")

</div>

At the moment I dont want to do the whole project though, I’d like to just handle the scripts.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 31, 2019, 1:04pm UTC](https://forum.inductiveautomation.com/t/ignore-git-folders-as-project-resource/29515/4 "2019-10-31T13:04:05Z")

</div>

You’ll have to handle this with `.gitignore` or something right now, then.

Right now part of the the project system thinks .git is a folder resource and another is having a fit over the name.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [April 17, 2020, 9:18am UTC](https://forum.inductiveautomation.com/t/ignore-git-folders-as-project-resource/29515/5 "2020-04-17T09:18:36Z")

</div>

**Ignition 8.0.10**  
@Kevin.Herron

I try to use git with **one git repository for one project Ignition.**  
Instead of a git repository for the whole ignition projects folder.  
I don’t wan’t to go deeper like a repo for script only, but for me it make sense that 1 Ignition projet = 1 git repository.

/data/project/global/.git (.git is the directory)  
/data/project/global/.gitgnore  
/data/project/myProj1/.git  
/data/project/myProj2/.git  
…

This works fine, except 2 remarks:

1. when .git folder content change, Ignition Client receive an update message (It must be because anything change in Ignition gateway projects/myProj folder)
2. when I restore a project from the gateway .git folder is deleted …

If possible, it would be very usefull that Ignition project management system ignore **.git folder and .gitignore files**! in the project/myProject folders

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [February 3, 2022, 5:28pm UTC](https://forum.inductiveautomation.com/t/ignore-git-folders-as-project-resource/29515/6 "2022-02-03T17:28:17Z")

</div>

Nightly Changelog: 8.1.15-b2022020216

Platform  
5375: Allow an Ignition project to be used as a Git repo (ignore .git folder)

Now automatically excluding .git, .hg, and .svn folders when scanning project files for changes.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [October 29, 2022, 4:36am UTC](https://forum.inductiveautomation.com/t/ignore-git-folders-as-project-resource/29515/7 "2022-10-29T04:36:47Z")

</div>

> [@mazeyrat](#):
>
> Platform  
> 5375: Allow an Ignition project to be used as a Git repo (ignore .git folder)
> 
> Now automatically excluding .git, .hg, and .svn folders when scanning project files for changes.

Coming back to this with the same issues here, just a different `.` folder!

```auto
com.inductiveautomation.ignition.common.project.resource.NameInvalidException: Name '.jython_cache' is invalid

```

Is there any reason that the feature change couldn't just be to either ignore all invalid project resource names or ignore all dot folders/files?
