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


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


| improve this answer | |
  • 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 Nov 2 '15 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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