转自:noerror.net

问题描述
执行git submodule update --init --recursive更新子模块时报错:
fatal: detected dubious ownership in repository at '/media/data/users/jhu3szh/serialize'
To add an exception for this directory, call:git config --global --add safe.directory /media/data/users/jhu3szh/serialize
解决办法
因为git心的权限安全策略导致的报错,可以按提示把目录添加到信任列表
git config --global --add safe.directory /media/data/users/jhu3szh/serialize
如果仍有其他问题可以考虑把目录下的所有内容都添加到信任列表:
git config --global --add safe.directory "*"
另外如果是linux系统,请检查目录所属的用户、以及访问权限。如果目录所属用户不是当前用户可以使用命令切换:chown -R <当前用户> <当前目录>

fatal detected dubious ownership in repository at解决办法相关推荐

  1. fatal: detected dubious ownership in repository(已解决)

    前言 最近windows 10 更新后,发现非常卡顿,鼠标右键,偶尔要等10秒才能有反应,无法系统还原,但是可以通过装机软件,进行重置,类似于系统重新安装 重置 windows 10后,因为更新了用户 ...

  2. git fatal: detected dubious ownership in repository 解决方法

    前言 最近windows 10 更新后,发现非常卡顿,鼠标右键,偶尔要等10秒才能有反应,无法系统还原,但是可以通过装机软件,进行重置,类似于系统重新安装 重置 windows 10后,因为更新了用户 ...

  3. fatal: detected dubious ownership in repository git报错解决

    文章目录 环境 原因 解决方案 变更文件夹权限 设置git安全目录 环境 win10,git 原因 由于win10重装系统后,文件夹所有者变了,导致git pull等都出现了该问题 fatal: de ...

  4. 【Git】报错处理:fatal: detected dubious ownership in repository at .....Set the environment variable GIT_T

    [Git]报错处理:fatal: detected dubious ownership in repository at ..... 异常信息 解决 异常信息 Windows PowerShell 版 ...

  5. 【ubuntu】fatal: detected dubious ownership in repository at ...

    在ubuntu使用git的时候遇到了以下错误: fatal: detected dubious ownership in repository at '/home/xxx' To add an exc ...

  6. git 出现 : fatal: detected dubious ownership in repository

    使用git的时候突然出现 fatal: detected dubious ownership in repository at 'D:/Web/map-tiles-downloader_node' ' ...

  7. Win10系统,使用VSCode提示错误fatal: detected dubious ownership in repository at

    1 环境信息 1.Win10 系统 2.VSCode 软件 2 问题现象 使用 VSCode 打开 Samba 中的 Git 工程时,Git 相关插件不会启用,通过 git 输出界面,可以看到有提示如 ...

  8. fatal: detected dubious ownership in repository at ‘/home/

    fatal: detected dubious ownership in repository at '/home/ To add an exception for this directory, c ...

  9. git pull拉取报错fatal: detected dubious ownership in repository

    重装系统之后,项目的所有者发生了变化,导致git的文件夹权限错乱,无法进行git 操作. 1. git pull拉取报错 fatal: detected dubious ownership in re ...

最新文章

  1. 象 DEV-Club 那样的彩色校验码
  2. FortiGate基本信息
  3. oracle可视化工具_零代码玩转数据可视化
  4. 如何做好OA流程审批?
  5. RabbitMQ code=200, text=Goodbye比较萌新的问题大佬绕道,乌拉~!
  6. 在Log4j2中更好地执行非日志记录器调用
  7. LeetCode 1064. 不动点(二分查找)
  8. 图解|查找数组中最大值的5种方法!
  9. 《SpringCloud超级入门》使用Eureka编写注册中心服务《九》
  10. jspservlet入门小项目--留言管理
  11. c 调用html方法,如何在C中调用eval()?
  12. 鸿蒙冰心有其他途径得到吗,关索除了人遁礼包,还有其他途径能获得吗?
  13. 283、移动零(python)
  14. pythonsample_python sample code | 学步园
  15. 2022 Android 进阶学习RoadMap
  16. PASCAL标准过程与函数
  17. 苹果系统itunes连iphone连不上服务器,itunes不识别iphone,iPhone连接不上iTunes怎么解决?连接不上iTunes怎么办?...
  18. hdu4939思维DP
  19. 信用社pb通用记账_信用社会计记账采用的是()。A、收付实现制B、权责发生制C、借贷记账法D、单式记账法...
  20. self.跟self-什么区别?

热门文章

  1. sv_labs学习笔记——sv_lab1(System Verilog)
  2. 主存、辅存、内存、外存、存储器:名词解释
  3. 从员工到总经理的成长笔记:自慢(6)
  4. Codeforces Round #620 (Div. 2)(D. Shortest and Longest LIS)(O(n log n)的最长上升子序列或者贪心)
  5. icc校色文件使用教程_Windows7色彩管理显示器ICC设置方法
  6. CSR8670蓝牙模块BQB认证经验总结
  7. ubuntu 修改系统默认语言为英文!
  8. Word修改默认英文字体为Times New Roman
  9. 安腾处理器 oracle,英特尔展示下一代安腾处理器Poulson
  10. 【面试-八股文】万字app测试 面试题,助你吊打面试官系列