使用git pull命令報錯
fatal: detected dubious ownership in repository at 'D:/xxx/myapp'
'D:/xxx/小程序后臺/myapp' is owned by:
? ? ? ? 'S-1-5-21-1208550113-1887591142-738254596-1000'
but the current user is:
? ? ? ? 'S-1-5-21-322366719-3789332941-2827711459-500'
To add an exception for this directory, call:
? ? ? ? git config --global --add safe.directory 'D:/xxx/小程序后臺/myapp'
進入到D:/xxx命令后查看myapp的所有者,發(fā)現(xiàn)是上面報錯中的“S-1-5-21-1208550113-1887591142-738254596-1000”這個。
?文章來源:http://www.zghlxwxcb.cn/news/detail-507135.html
期待通過點擊更改按鈕把所有者改成“S-1-5-21-322366719-3789332941-2827711459-500”這個,實踐后發(fā)現(xiàn)“S-1-5-21-322366719-3789332941-2827711459-500”這個主體找不到,于是,重新拉取了一份git代碼,然后把本地代碼覆蓋上去,再次去看所有者,發(fā)現(xiàn)所有者改成了Administrator ,后面一切正常使用git文章來源地址http://www.zghlxwxcb.cn/news/detail-507135.html
到了這里,關(guān)于記一次git pull報錯問題 is owned by: ‘xxx‘ but the current user is ‘xxx‘的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!