解决 fatal: detected dubious ownership in repository at ‘XXXX‘ 问题

重装系统后,重新下载git之后,出现了这个问题:

fatal: detected dubious ownership in repository at 'V:/Web/Github_commit/Interview'

这个错误表明 Git 检测到仓库的所有者和当前用户不一致,这可能被视为一个安全风险。要解决这个问题,可以将该目录标记为"安全目录"

解决步骤

// step 1
git config --global --add safe.directory 'V:/Web/Github_commit/Interview'

// step 2
git config --global --get-all safe.directory

// step 3
git add .
相关推荐
油泼辣子多加7 小时前
2025年02月21日Github流行趋势
github
AC使者1 天前
介绍 TensorFlow 的基本概念和使用场景。
开发语言·自然语言处理·sqlite·github
JustHappy1 天前
「我们一起做组件库🌻」做个面包屑🥖,Vue的依赖注入实战💉(VersakitUI开发实录)
前端·javascript·github
桃木山人1 天前
BigData File Viewer报错
大数据·java-ee·github·bigdata
逸Y 仙X1 天前
Git常见命令--助力开发
java·大数据·git·java-ee·github·idea
007_rbq1 天前
XUnity.AutoTranslator-Gemini——调用Google的Gemini API, 实现Unity游戏中日文文本的自动翻译
人工智能·python·游戏·机器学习·unity·github·机器翻译
非 白2 天前
【后端】gitHub访问速度太慢解决办法
github
dringlestry2 天前
pycharm将当前项目上传到github
ide·pycharm·github
油泼辣子多加2 天前
2025年02月17日Github流行趋势
github
徐小夕2 天前
H5-Dooring零代码搭建:从开源到商业化的4年蜕变
前端·javascript·github