# Adding Specific Files from Ignored Directories in .gitignore | RealCoding Tech Blog Sharing practical development insights and technical know-how from real-world experience [https://realcoding.blog/en/2024/01/10/gitignore-specific-files-in-ignored-directory/](https://realcoding.blog/en/2024/01/10/gitignore-specific-files-in-ignored-directory/)
Activity
jules43 commentedon Apr 16, 2026
The example you give under 'Extension-based Selective Inclusion:'
Describes exactly what I want to do, but it doesn't seem to work when I try it.
The .gitignore documentation says:
Is there some way around the problem?