一、报错信息:Cannot check the working tree for unmerged files because of an error
Cannot check the working tree for unmerged files because of an error.
detected dubious ownership in repository at 'D:/MyProjects/xxx' 'D:/MyProjects/xxx' is owned by: 'S-1-5-21-28122164-4233803378-668962903-500' but the current user is: 'S-1-5-21-1992348167-863570562-3428861900-500' To add an exception for this directory, call: git config --global --add safe.directory D:/MyProjects/xxx
解决:
1、Git 2.36+ 引入了 safe.directory 检查,防止在权限不明的目录中执行命令
2、在 git 命令窗口执行即可:git config --global safe.directory "*"
4855

被折叠的 条评论
为什么被折叠?



