idea git cannot ignore .idea, target folder and .iml file

The reason for the invalidation is that the corresponding directory or file has been tracked by git, and it will be invalid after adding .gitignore at this time.

Folder: git rm -r --cached .idea

File: git rm --cached project.iml

Re-add the .gitignore file

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326723562&siteId=291194637