I was looking for other questions, but could not find a working solution for my project. Having a Magento project, I want to exclude everything except this:
/app/design/frontend/default/theme_name # and obviously all subfolders /skin/frontend/default/theme_name # and all subfolders
I tried many combinations, but no luck. I am currently stuck in this .gitignore file:
* !/app/ !/app/* app/* !/app/design/ !/app/design/*
But it does not work recursively under the design folder. He just added a test file inside the folder I created.
git gitignore magento
s3v3n
source share