.gitignore不会忽略目录.idea中的文件

时间:2019-06-04 19:24:05

标签: git

我想让Git忽略 .idea 文件夹中的所有文件。

我已将.idea/添加到文件 .gitignore 中,但是当我调用git status时,它返回:

    deleted:    .idea/artifacts/zt_productions_war.xml
    modified:   .idea/compiler.xml
    deleted:    .idea/dataSources.xml
    deleted:    .idea/dataSources/6b173822-9142-4814-812e-260d887515a7.xml
    deleted:    .idea/libraries/Maven__javax_servlet_javax_servlet_api_4_0_1                                                                                                                                                                                               .xml
    deleted:    .idea/libraries/Maven__junit_junit_4_11.xml
    deleted:    .idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml
    deleted:    .idea/libraries/Maven__org_mariadb_jdbc_mariadb_java_client_                                                                                                                                                                                               2_4_1.xml
    modified:   .idea/misc.xml
    deleted:    .idea/modules.xml
    deleted:    lib/javax.annotation.jar
    deleted:    lib/javax.ejb.jar
    deleted:    lib/javax.jms.jar
    deleted:    lib/javax.persistence.jar
    deleted:    lib/javax.resource.jar
    deleted:    lib/javax.servlet.jar
    deleted:    lib/javax.servlet.jsp.jar
    deleted:    lib/javax.servlet.jsp.jstl.jar
    deleted:    lib/javax.transaction.jar
    modified:   src/main/webapp/assets/css/style.css
    modified:   src/main/webapp/assets/css/style.css.map
    modified:   src/main/webapp/assets/css/style.sass
    modified:   src/main/webapp/backend/chat.html

为什么要列出.idea目录中的文件?

0 个答案:

没有答案