【异常错误】detected dubious ownership in repository ****** is owned by: ‘

今天在github git的时候,突然出现了这种问题,下面的框出的部分一直显示:

detected dubious ownership in repository at 'D:/Pycharm_workspace/SBDD/1/FLAG' 'D:/Pycharm_workspace/SBDD/1/FLAG' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-4177494839-3217565356-2102511185-500' To add an exception for this directory, call: git config --global --add safe.directory

【异常错误】detected dubious ownership in repository ****** is owned by: ‘_第1张图片

导致我对git后的内容进行修改时,总是不显示修改哪里了,此时应该在你要git到的文件夹下,然后点击“git base here”,然后git clone你的git库,然后使用pycharm打开,看一下git是否好了,这样重新打开你原来的项目应该也好了

【异常错误】detected dubious ownership in repository ****** is owned by: ‘_第2张图片

当时我是直接:

【异常错误】detected dubious ownership in repository ****** is owned by: ‘_第3张图片

所以可能错误了

其他方法

在pycharm这里设置“管理员身份启动”

【异常错误】detected dubious ownership in repository ****** is owned by: ‘_第4张图片


但是我在这个之前还尝试了几种方法,有可能是其他方法的作用:

1、git fatal: detected dubious ownership in repository 解决方法_张世争的博客-CSDN博客

2、卸载github copilot

你可能感兴趣的:(python异常错误,人工智能,python)