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

问题:

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 "*";

你可能感兴趣的:(Git,git,github)