转自: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了  

IDEA Git 修改后的文件无法Commit

 

相关文章:

  • 2021-06-16
  • 2021-07-16
  • 2021-04-21
  • 2022-12-23
  • 2023-04-06
  • 2022-12-23
猜你喜欢
  • 2021-07-24
  • 2021-10-23
  • 2022-03-06
  • 2021-08-02
  • 2021-11-28
  • 2021-11-05
  • 2021-08-10
相关资源
相似解决方案