luyiluba
luyiluba
采纳率100%
2017-03-03 09:14 阅读 7.2k
已采纳

git add的时候出错,是什么原因?改怎样解决?

The following problems have occurred when adding the files:
The following paths are ignored by one of your .gitignore files:
.idea
Use -f if you really want to add them.
during executing git "C:\Program Files\Git\cmd\git.exe" -c core.quotepath=false add --ignore-errors -- profiles/profile-prd.properties .idea/libraries/Maven__org_mybatis_mybatis_spring_1_2_4.xml .idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_5_1.xml .idea/libraries/Maven__com_google_guava_guava_18_0.xml rest-client/src/main/java/com/core/ws/client/domain/Item.java .idea/libraries/Maven__com_mchange_mchange_commons_java_0_2_9.xml .idea/libraries/Maven__com_mchange_c3p0_0_9_5.xml .idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml .idea/libraries/Maven__org_beanshell_bsh_2_0b4.xml .idea/libraries/Maven__commons_codec_commons_codec_1_10.xml .idea/vcs.xml .idea/encodings.xml .idea/compiler.xml rest-client/src/test/Java/com/core/ws/lient/ItemApiTest.java .idea/libraries/Maven__postgresql_postgresql_9_1_901_jdbc4.xml .idea/libraries/Maven__org_testng_testng_6_9_10.xml .idea/libraries/Maven__org_mybatis_mybatis_3_3_1.xml .idea/libraries/Maven__junit_junit_4_12.xml .idea/libraries/Maven__com_beust_jcommander_1_48.xml .idea/modules.xml .idea/misc.xml data-storage/src/main/resources/application.properties
图片说明

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • 已采纳
    oyljerry oyljerry 2017-03-03 09:46

    因为你add的文件已经在gitignore中了,理论上它是一些本地文件不需要添加到git库中去的
    如果你需要强行添加,git add -f

    点赞 3 评论 复制链接分享
  • u010430832 dear_Mary 2017-03-15 06:48

    楼上说的对,要提交的文件在忽略列表中了

    点赞 1 评论 复制链接分享

相关推荐