Git
Ignore already tracked files in Git
To ignore a file that's already being tracked in Git, follow these steps:
- Add the file or folder to the .gitignore file.
- Remove it from the index by running:
git rm --cached <file>
If it's a folder, run:git rm -r --cached <folder>