]> source.dussan.org Git - gitignore.git/commit
Fixes issue excluding sub directories 2315/head
authorHannes Elvemyr <git@elvemyrconsulting.se>
Thu, 9 Mar 2017 10:31:19 +0000 (11:31 +0100)
committerHannes Elvemyr <git@elvemyrconsulting.se>
Thu, 9 Mar 2017 10:31:19 +0000 (11:31 +0100)
commit1e00aee3b15595ddaa35847e0b0882d839c4007e
tree8a30c962a7a29e58c3a804daf862a9919c0d26d9
parent1489551937b44864d07b87891ab95af439634e02
Fixes issue excluding sub directories

This .gitignore is not correct. At least was not working for me.
Ignoring /media/* and then excluding !/media/customer/.htaccess is not
working. According to the Git manual, "It is not possible to re-include
a file if a parent directory of that file is excluded."
(https://git-scm.com/docs/gitignore).

Found a solution here:
http://stackoverflow.com/questions/987142/make-gitignore-ignore-everything-except-a-few-files/16318111#16318111
Magento.gitignore