fatal: detected dubious ownership in repository at 'D:/'
'D:/' is owned by:
'S-1-5-18'
but the current user is:
'S-1-5-21-950603086-806853457-3538489594-1001'
To add an exception for this directory, call:
git config --global --add safe. directory D:/
该如何处理
如果是Git v2.35.3
通过运行来完成:
git config --global --add safe.directory '*'
它会将以下设置添加到您的全局.gitconfig文件中:
[safe]
directory = *