使用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 , 翻译过来就是权限问题

解决:

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

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐