Last Updated: February 25, 2016
·
1.164K
· heitorosilva

Ignoring the content of a folder

Some of my projects have folders that I can ignore the files, which doesn’t need to be versioned, neither deployed.

If you need to ignore the whole content of a folder (files and sub-folders [empty / full]), create a .gitignore file and add the following line:

[^.]*

Save the file inside the folder you want to ignore the content.

Simple and useful tip…


http://blog.heitorsilva.com/en