git ignore command line code example
Example 1: .gitignore
node_modules
.DS_Store
.env
Example 2: gitignore folder
in .gitignore:
folder/
Example 3: git exclude folder
directory_to_exclude/
Example 4: how to git ignore a file
git config --global core.excludesfile ~/.gitignore_global