Git异常fatal: detected dubious ownership in repository at

Git报错:

$ git remote
fatal: detected dubious ownership in repository at 'C:/Users/DELL/code/larabbs'
'C:/Users/DELL/code/larabbs' is owned by:
        'S-1-5-32-544'
but the current user is:
        'S-1-5-21-2587871540-936293849-2521995129-1001'
To add an exception for this directory, call:

        git config --global --add safe.directory C:/Users/DELL/code/larabbs

根据报错信息:当前用户与仓库文件夹所有者不一致,
解决方案:修改文件夹所有者
Git异常fatal: detected dubious ownership in repository at_第1张图片
Git异常fatal: detected dubious ownership in repository at_第2张图片
Git异常fatal: detected dubious ownership in repository at_第3张图片
报错修改前,注意勾选将修改应用到子文件及子文件夹
Git异常fatal: detected dubious ownership in repository at_第4张图片

你可能感兴趣的:(开发工具,git,github)