git ignore how to use code example
Example 1: create gitignore
# creates gitignore file
$ touch .gitignore
Example 2: .gitignore
node_modules
.DS_Store
.env
Example 3: git exclude folder
directory_to_exclude/
Example 4: git ignore not saving changes
git rm -rf --cached .
git add .