当前位置:   article > 正文

Git操作 detected dubious ownership in repository at... 问题

dubious ownership

问题:

Windows新增用户之后使用git出现问题:

fatal: detected dubious ownership in repository at 'D:/...'
'D:/...' is owned by:
        'S-1-5-21-1045045257-1974506225-3199486363-500'
but the current user is:
        'S-1-5-21-1045045257-1974506225-3199486363-1001'
To add an exception for this directory, call:

        git config --global --add safe.directory D:/...

解决方案:

git config --global --add safe.directory "*";

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/738784
推荐阅读
相关标签
  

闽ICP备14008679号