<p>Those image transform folders all start with an underscore. The following pattern should work, if you don't set up underscore folders yourself:</p>

<p><code>public/assets/**/[_]*/</code></p>

CC BY-SA 3.0
2015-11-02T16:39:55.740Z
I was having problems getting this to work down through all my subdirectories, so I put a .gitignore file in each of my image directories that ignore transforms directories I wanted to ignore. I used this pattern: /[_]*/
Jay Haase
CC BY-SA 3.0
2015-08-26T12:05:34.553Z
2015-08-26T12:05:34.553Z
carlcs
<p>Not sure on the gitignore pattern I need to add to ignore craft's image transforms it automatically generates. Any ideas?</p>

<image-transforms><git>
Gitignore pattern to remove image transforms
# Gitignore pattern to remove image transforms

(Asked by: username_0 on 2015-08-26)

Not sure on the gitignore pattern I need to add to ignore craft's image transforms it automatically generates. Any ideas?

**Tags:** image-transforms, git


---

## 1 answers

### Answer by username_1 on 2015-08-26. Score: 4 | Accepted answer

Those image transform folders all start with an underscore. The following pattern should work, if you don't set up underscore folders yourself:

`public/assets/**/[_]*/`

> **Comments:**
> **username_2**: I was having problems getting this to work down through all my subdirectories, so I put a .gitignore file in each of my image directories that ignore transforms directories I wanted to ignore. I used this pattern: /[_]*/  

---

