Git - Gitignore

Stop tracking a file if gitignore was added after the file was already tracked:

git rm --cached index.html

Sources:

  • https://github.com/github/gitignore