git fatal: detected dubious ownership in repository

问题

git fatal: detected dubious ownership in repository_第1张图片

分析

用户拥有者不对,怀疑是因为该仓库是在管理员权限下创建的,而此时是没有用管理员权限打开,所以显示拥有者不对。

解决办法

1. 按照提示

git config --global --add safe.directory C:/Users/wzq20/Desktop/ManifestProjectRoot/repoProjects/RoomIt/master/2022-10-31_19-53

2. 重新用管理员权限打开

git fatal: detected dubious ownership in repository_第2张图片
可以正常使用了

你可能感兴趣的:(git,错误解决,git)