【Git】 fatal: detected dubious ownership in repository 解决方法

git 操作错误提示:

【Git】 fatal: detected dubious ownership in repository 解决方法_第1张图片

解决方法:

方法一: 输入git config --global --add safe.directory C:/Users/21077/vue_shop,但是这只能解决当前的 git 仓库,其他的git 仓库,都要这么做,并且 git config -l,会发现一大串的这些操作,具体没有尝试,参考别的博主的

你可能感兴趣的:(远程仓库,git,github)