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…
Written by Heitor Silva
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Gitignore
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#