Categories : Software

Hi, this is an example for how to ignore all files based on file type (file extension) requiresively in subfolders also. Also you can extend this for folder name requiresively in example two

Ignore all files based on specific file extension requiresively example :

**.xml
**.xlsx
**.xls
**.csv
**.zip
**.rar
**.7z
**.tar
**.gz

In this code we used ‘**’ alias to define file names and paths. The important part is end the line with file extension based on your file type. And that is it

Also you can define folder name to ignore this folder in all main and subdirectories by this example:

Ignore All Folders Based on specific folder name requiresively

**/vendor
**/node_modules
**/bower_components
**/tmp

Leave a Reply

Your email address will not be published. Required fields are marked *