git更新代码的时候Couldn’t check the working tree for unmerged files because of an error. unsafe repository (‘D:/space/20231101’ is owned by someone else) To add an exception for this directory, call: git config --global --add safe.directory D:/space/20231
无法更新由于错误,无法检查工作树中未合并的文件。不安全的存储库(要为此目录添加异常,请调用:
git config --global --add safe.directory D:/space/20231101
在idea中的终端中输入以上命令
注意:路径D:\space\20231101>将\替换为/,将终端命令符> 不要。聪明的你,一定会发现这个问题。