I try to ignore .idea directory when commit and push to remote repository. I set my .gitignore file in following way:
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
But when I committed and pushed to tfs repository, I found the .idea folder is still pushed to repo.
Is there anyway to remove .idea folder from repository and ignore it in future commit and push?
Note: I have already committed and pushed to remote repository without setting up .gitignore file. I think the .idea folder in repo is from last commit.