gitignore exclude directory code example
Example 1: gitignore folder
in .gitignore:
folder/
Example 2: git exclude folder
directory_to_exclude/
Example 3: how to git ignore a file
git config --global core.excludesfile ~/.gitignore_global
in .gitignore:
folder/
directory_to_exclude/
git config --global core.excludesfile ~/.gitignore_global