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