使用git pull命令报错
fatal: detected dubious ownership in repository at 'D:/xxx/myapp'
'D:/xxx/小程序后台/myapp' is owned by:
'S-1-5-21-1208550113-1887591142-738254596-1000'
but the current user is:
'S-1-5-21-322366719-3789332941-2827711459-500'
To add an exception for this directory, call:
git config --global --add safe.directory 'D:/xxx/小程序后台/myapp'
进入到D:/xxx命令后查看myapp的所有者,发现是上面报错中的“S-1-5-21-1208550113-1887591142-738254596-1000”这个。
期待通过点击更改按钮把所有者改成“S-1-5-21-322366719-3789332941-2827711459-500”这个,实践后发现“S-1-5-21-322366719-3789332941-2827711459-500”这个主体找不到,于是,重新拉取了一份git代码,然后把本地代码覆盖上去,再次去看所有者,发现所有者改成了Administrator ,后面一切正常使用git