I am writing a plugin for magento and have an issue with my gitignore file
I tried to make it like:
/*
!app/code/community/MyAwesomePlugin
wich doesnt work. it just ignores all my files. But if I rewrite it to:
/*
!/app
/app/code/*
!/app/code/community
/app/code/community/*
!app/code/community/MyAwesomePlugin
the gitignore file works fine.
note also that if I do /app/code/
instead of /app/code/*
it will have no effects on the gitignore rules.
What is happening here and why can't I simply exclude all and specify a few files to include?