小工具知识网

当前位置: 首页 > 行业知识 > 解决Git报错:fatal: detected dubious ownership in repository at

行业知识

解决Git报错:fatal: detected dubious ownership in repository at

2026-11-10 14:50:43 来源:互联网转载

在通�index.php/tags-41973.html" >� Git Bash 提交项目代码时输入 git add . 命令后,报错:fatal: detected dubious ownership in repository at

()

这是因为该项目的所有者与现在的用户不一致

比如说: 该项目的所有者是 Administrator,而当前用户是 qiuye, 那么就会导致上面的错误

()

解决的办法也很简单在 git bash 中输入

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

上一篇:安卓怎么连接win服务器?

下一篇:怎么找到app的服务器地址?