Try .idea/ instead of .idea/*

Your idea files are still in this commit, so it's not ignoring them. You'll also need to remove them from your repo with git rm.