当前位置:   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博客】
推荐阅读
相关标签
  

闽ICP备14008679号