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