git和idea重新安装后提交异常

场景:我重装了系统,idea装了2024.3版本的,git也重新装了,但是项目中还是有.git文件夹的,下载了idea的码云插件后,提交报错如下:

异常:Error updating changes: detected dubious ownership in repository at 'E:/ideaCode/MoveCar' To add an exception for this directory, call: git config --global --add safe. directory E:/ideaCode/MoveCar Set the environment variable GIT_TEST_DEBUG_UNSAFE_DIRECTORIES=true and run again for more information.

解决办法:打开cmd执行以下,然后重新idea中提交即可

git config --global --add safe.directory "*"

相关推荐
daidaidaiyu9 分钟前
Spring IOC 源码学习一 基本姿势
java·spring
LSL666_24 分钟前
SpringBoot自动配置类
java·spring boot·后端·自动配置类
甜鲸鱼1 小时前
Java与MySQL中的枚举(Enum)
java·mysql
xxxxxxllllllshi1 小时前
【LeetCode Hot100----14-贪心算法(01-05),包含多种方法,详细思路与代码,让你一篇文章看懂所有!】
java·数据结构·算法·leetcode·贪心算法
pengzhuofan1 小时前
Sentinel 服务保护
java·微服务·sentinel
6***37941 小时前
Java安全
java·开发语言·安全
豐儀麟阁贵1 小时前
8.1 异常概述
java·开发语言
qq_12498707532 小时前
基于springboot的疾病预防系统的设计与实现(源码+论文+部署+安装)
java·spring boot·后端·毕业设计
麦烤楽鸡翅2 小时前
简单迭代法求单根的近似值
java·c++·python·数据分析·c·数值分析
火星数据-Tina2 小时前
低成本搭建体育数据中台:一套 API 如何同时支撑比分网与 App?
java·前端·websocket