重装系统之后,项目的所有者发生了变化,导致git的文件夹权限错乱,无法进行git 操作。

1. git pull拉取报错

fatal: detected dubious ownership in repository at 'F:/IdeaTestWorkSpace/2021/ZQMQ'
'F:/IdeaTestWorkSpace/2021/ZQMQ' is owned by:'S-1-5-21-1199569372-1925787744-2398322229-500'
but the current user is:'S-1-5-21-4189058902-1198426000-3339118508-1000'
To add an exception for this directory, call:git config --global --add safe.directory F:/IdeaTestWorkSpace/2021/ZQMQ
  • 解决方案

其实他已经告诉你解决方案了,就是最后一行:

git config --global --add safe.directory F:/IdeaTestWorkSpace/2021/ZQMQ

但是这样能进行pull 可本地代码发生了变化的它检测不到了,也就是修改了代码 git commit 不到了。

  • 最终解决方案:

在别的地方 git clone 该项目。把项目中的.git 文件夹覆盖到ZQMQ中的 .git 文件夹 就可以了

git pull拉取报错fatal: detected dubious ownership in repository相关推荐

  1. git.exe pull -v --progress “scanpenmodular“fatal: detected dubious ownership in repository at ‘

    解决方案:打开git bash   执行一下这条命令

  2. git bash报错fatal: detected dubious ownership in repository at的解决方法

    原因 文件夹的所有者和现在的用户不一致 例如:文件夹的所有者是Administrator,而当前用户是myAccount 解决方案一 右键文件夹 -> 属性 -> 所有者 -> 更改 ...

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

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

  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. fatal: detected dubious ownership in repository git报错解决

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

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

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

  7. Git异常fatal: detected dubious ownership in repository at

    Git报错: $ git remote fatal: detected dubious ownership in repository at 'C:/Users/DELL/code/larabbs' ...

  8. fatal detected dubious ownership in repository at解决办法

    转自:noerror.net 问题描述 执行git submodule update --init --recursive更新子模块时报错: fatal: detected dubious owner ...

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

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

最新文章

  1. python字典作业_python第一天作业:字典
  2. 很好的理解梯度 散度 旋度 下三角运算 费曼物理讲义
  3. jmeter操作练习
  4. 意料之外,情理之中,Spring.NET 3.0 版本发布-
  5. java数组转list(Arrays .asList)
  6. 【Solidity】1.一个Solidity源文件的布局 - 深入理解Solidity 1
  7. Android Camera架构浅析
  8. 如何在cmd命令提示符里打开Python
  9. 超详细,手把手 教你 SQLyog 安装教程
  10. 非极大值抑制( Non-max suppression)
  11. “百度开放云编程马拉松”成都赛区19件作品及团队介绍
  12. cesium接入天地图影像与注记(经纬度)(cesium篇.70)
  13. 【Redis】keys命令和SCAN命令
  14. 2021年应用市场放假安排
  15. 【CSS】css文字超出显示省略号/文字超过三行显示省略号..
  16. 为什么abc三相电压加起来是0,而坐标变换之后在dq0坐标系中有值呢?——矢量控制中abc到dq0坐标系的坐标变换的思考
  17. 使用STM32的DFSDM外设来驱动PDM麦克风进行音频采集
  18. 如何利用计算机隐藏文件,如何查找隐藏的计算机文件夹
  19. mysql查询日期格式_mysql 日期格式化查询
  20. AtCoder Beginner Contest 167 D Teleporter 找周期

热门文章

  1. layui中模板的使用
  2. css前端开发学习,前端百度云csdn
  3. 趣味题——求两个日期之间相隔的天数
  4. Oracle数据库开启归档日志和补充日志
  5. cadence原理图绘制零基础进阶1
  6. 设计一个银行账户管理系统
  7. C++:include:理解 C++ 中的头文件和源文件的作用
  8. linux2.6内核initrd机制解析
  9. 如何使用阿里巴巴矢量图标库
  10. 如何取消粘滞键?(连续按5下shift键会打开粘滞键)