解决:Error updating changes: detected dubious ownership in repository at
在通过 Git Bash 提交项目代码时输入 git add . 命令后,报错:Error updating changes: detected dubious ownership in repository at ...
这是因为 该项目的所有者 与 现在的用户 不一致
比如说: 该项目的所有者是 Administrator,而当前用户是 QIN, 那么就会导致上面的错误
解决的办法也很简单在终端命令 git bash 中输入
git config --global --add safe.directory "*"
赋予权限,即可解决这个异常。