how to ignore file in git command code example
Example 1: git remove file from gitignore
git rm --cached <file>
Example 2: how to git ignore a file
git config --global core.excludesfile ~/.gitignore_global
git rm --cached <file>
git config --global core.excludesfile ~/.gitignore_global