IDEA Git 修改后的文件无法Commit

转自:https://blog.csdn.net/moneyshi/article/details/81298861

因对IDEA使用不熟,在使用和配置GIT的时候,可能哪里配置错误,导致我一直无法使用IDEA提交项目,并且提示异常: The directory <Project> is registered as a Git root, but no Git repositories were found there.  只能通过文件夹的方式或者 命令行的形式提交。 
解决方案:

即把原项目的git引用全部删除,重新导入。点击应用之后, 重新提交文件可以Commit了  

 

posted @ 2019-05-19 17:20  李清欣  阅读(4372)  评论(0编辑  收藏  举报