ignore file git command code example
Example 1: git exclude folder
directory_to_exclude/
Example 2: how to git ignore a file
git config --global core.excludesfile ~/.gitignore_global
Example 3: git ignore content of a folder
# exclude everything
somefolder/*
# exception to the rule
!somefolder/.gitkeep