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