gitignore file type code example
Example 1: how to git ignore a file
git config --global core.excludesfile ~/.gitignore_global
Example 2: gitignore all log files
*.log
!spec/*.log
git config --global core.excludesfile ~/.gitignore_global
*.log
!spec/*.log