Homec4science

Fixes issue excluding sub directories

Authored by Hannes Elvemyr <git@elvemyrconsulting.se> on Mar 9 2017, 11:31.

Description

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

Details

Committed
Hannes Elvemyr <git@elvemyrconsulting.se>Mar 9 2017, 11:31
Pushed
aubortJul 2 2018, 16:12
Parents
rGITIGNORE1489551937b4: Merge pull request #2312 from Yousha/patch-1
Branches
Unknown
Tags
Unknown

Event Timeline

Hannes Elvemyr <git@elvemyrconsulting.se> committed rGITIGNORE1e00aee3b155: Fixes issue excluding sub directories (authored by Hannes Elvemyr <git@elvemyrconsulting.se>).Mar 9 2017, 11:31