fatal: detected dubious ownership in repository at....

显示如下:

$ git remote add origin [email protected]:2002060229jby/timeseries_course.git
fatal: detected dubious ownership in repository at 'dir' is owned by:
        'S-1-5-21-4071224-226189835-1159693967-1001'
but the current user is:
        'S-1-5-21-3095290325-2940757025-966858311-1001'
To add an exception for this directory, call:

        git config --global --add safe.directory 'dir'

因为git新的权限安全策略导致的报错,可以按提示把目录添加到信任列表。

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