解决git出现fatal: detected dubious ownership in repository at XXXXX的错误

发布时间 2023-06-22 21:07:12作者: 东凭渭水流

在window环境下,使用git命令时报错fatal: detected dubious ownership in repository at XXXXXX,图片如下

解决方法如下

添加一行代码

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