idea更新git代码报错No Git Roots

idea更新git代码报错:

shell 复制代码
No Git Roots
None of configured Git roots are under Git.
The configured directory must have ".git'
directory in it.

但是本地项目里是存在.git文件的,就是突然间不能更新代码了

然后尝试重新拉新项目代码提示:

shell 复制代码
Git is not installed
Cannot identify version of git executable: no response

解决:手动重新选择git.exe文件并重启idea

相关推荐
阿维的博客日记1 小时前
MultipartFile 是不是表示仅仅是一个分片?
java·后端·spring·multipartfile
程序员无隅1 小时前
Coding Agent 为什么压缩上下文后还能继续工作?上下文模块设计拆解
java·开发语言·数据库
Python+991 小时前
Java 枚举类(Enum)详解:从基础到高级应用
java·开发语言·python
二炮手亮子2 小时前
浅记java线程池
java·开发语言
一路向北North2 小时前
Spring Security OAuth2.0(23):分布式系统授权-转发明文给微服务
java·spring·微服务
爱吃牛肉的大老虎4 小时前
rust基础之环境搭建
java·开发语言·rust
tellmewhoisi5 小时前
多版本共用redis的token有效期校验(过期重新登录)
java·redis·缓存
疯狂打码的少年5 小时前
【软件工程】结构化设计:模块独立性与耦合内聚
java·开发语言·笔记·软件工程
乐观的Terry5 小时前
3、数据库设计与领域实体
java·数据库·spring boot·spring cloud·ai编程
C++、Java和Python的菜鸟5 小时前
第4章 后端Web基础(基础知识)
java·开发语言