Track file inside ignored directory
To add to “.gitignore exclude folder but include specific subfolder”, one good way to debug those .gitignore file is to use git check-ignore (Git 1.8.4+): git check-ignore -v my_folder/my_file.md You would see it is still ignored because of the my_folder/ rule. That is because it is not possible to re-include a file if a parent …