重装系统后,在原来的项目下执行 git 命令时提示: fatal: detected dubious ownership in repository at 'D:/Projects/xxxxx' 'D:/Projects/xxxxx' is owned by: 'S-1-5-21-2440756236-1610524770-2949854643-1001' but the current user is: 'S-1-5-21-2927613386-97785579-904096897-1001' To add an exception for this directory, call: git config --global --add safe.directory D:/Projects/xxxxx 原因是 Git 出于安全方面考虑,在某