.project file is not getting ignored after adding in the gitignore file

Hi Team,
I have added the .project to get ignored in gitignore file to avoid the changes when commit and push the code.

But it is not ignored and getting added again.

Project level folders and files to ignore










Even i have tried adding forward slash “/” (/.project) , backward slash “” (.project). Still it is getting listed under unstaged changes.
Appreciate for any help. Thanks in advance

You possibly should do:

$ cd $projectDir
$ git -rm --cached .project

This will remove the .project out of the repository.

1 Like

Thanks Kazurayam. I was able to solve it after removing the cache.

$ git rm --cached .project