Categories : Software

In this article I will show you how to ignore and dont add folders that has specific name in git. To make this happen we should use .gitignore file.

Earlier I have posted an article about how to disable all files based on file type (file extension) That is also usefull content you can check.

Example .gitignore file to ignore specific file extension and dont add & push to repository requiresively in subfolders also.

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

If you also want to ignore files based on file extension you can use this example code too:

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

With this example you dont need to worry about bit sized files in your folder anymore.

Leave a Reply

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