/.idea/<project-name>.iml appears in Default Changelist even if /.idea/ in .gitignore

已回答

Hello,

my .gitignore has:

/.idea/

also, just to be sure, I added the same in /.git/info/exclude/:

/.idea/

Yesterday I renamed the project (File | Rename Project...) and now when I open the Commit window the /.idea/PROJNAME.iml is shown as a file to be committed every time.

https://i.ibb.co/zG5KKBD/iml.png

https://i.ibb.co/pfrXSSK/iml2.png

/.idea/ has never been committed.

Using PhpStorm 2019.3.3

0

You must have added this file to the Git staging area unintentionally. Removing it from there should do the trick:
git rm --cached .idea/project.iml

1

请先登录再写评论。