当前位置:   article > 正文

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

git fatal: detected dubious ownership in repository at 'd:/onedrive/桌面/cod

在通过 Git Bash 提交项目代码时输入 git add . 命令后,报错:fatal: detected dubious ownership in repository at

这是因为该项目的所有者与现在的用户不一致
比如说: 该项目的所有者是 Administrator,而当前用户是 qiuye, 那么就会导致上面的错误

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

git config --global --add safe.directory "*"
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/397105
推荐阅读
相关标签
  

闽ICP备14008679号