- Navigate to .git/info, in the project folder
- Open the exclude file in your editor
- Put in the files you want to ignore locally (path must be relative to root of project)
- Run the following command in the terminal (in your project folder) :
git update-index --skip-worktree <path-names>
To bring these files back to being tracked by git (in the case that you need updated configurations from the repository), simply run git update-index --no-skip-worktree .