I have a hidden folder /.idea
from the IDE that I want to ignore. I have followed the patter of https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore but it is not being ignored.
// .gitignore
# See https://help.github.com/ignore-files/ for more about ignoring files.
# dependencies
/node_modules
package-lock.json
**/node_modules
# testing
/coverage
# production
/build
# Things that I have tried
.idea/
/.idea/
.idea/**
What would be the way to ignore it?
If you already commited your .idea
folder you need to remove it from git index
git rm --cached -r .idea
The correct way to ignore a folder inside your .gitignore
file is the following
.idea/