3

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

1 Answer 1

4

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/**/[_]*/

1
  • 1
    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
    Commented Nov 2, 2015 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.