git 出现 : fatal: detected dubious ownership in repository

使用git的时候突然出现

fatal: detected dubious ownership in repository at 'D:/Web/map-tiles-downloader_node'
'D:/Web/map-tiles-downloader_node' is owned by:
        'S-1-5-32-544'
but the current user is:
        'S-1-5-21-3026511577-3206804956-1153847009-1001'
To add an exception for this directory, call:

        git config --global --add safe.directory D:/Web/map-tiles-downloader_node

fatal: detected dubious ownership in repository , 翻译过来就是权限问题

解决:

使用管理员打开控制台再次运行正常

你可能感兴趣的:(报错本,git)