git ignote -env code example
Example 1: how to git ignore a file
git config --global core.excludesfile ~/.gitignore_global
Example 2: how to put access.log in gitignore
git rm --cached [file]
git update-index --assume-unchanged [file]
git config --global core.excludesfile ~/.gitignore_global
git rm --cached [file]
git update-index --assume-unchanged [file]