git ingore folder code example
Example 1: .gitignore
node_modules
.DS_Store
.env
Example 2: git exclude folder
directory_to_exclude/
Example 3: git ignore content of a folder
# exclude everything
somefolder/*
# exception to the rule
!somefolder/.gitkeep