git pull拉取报错fatal: detected dubious ownership in repository
重装系统之后,项目的所有者发生了变化,导致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相关推荐
- git.exe pull -v --progress “scanpenmodular“fatal: detected dubious ownership in repository at ‘
解决方案:打开git bash 执行一下这条命令
- git bash报错fatal: detected dubious ownership in repository at的解决方法
原因 文件夹的所有者和现在的用户不一致 例如:文件夹的所有者是Administrator,而当前用户是myAccount 解决方案一 右键文件夹 -> 属性 -> 所有者 -> 更改 ...
- git 出现 : fatal: detected dubious ownership in repository
使用git的时候突然出现 fatal: detected dubious ownership in repository at 'D:/Web/map-tiles-downloader_node' ' ...
- 【Git】报错处理:fatal: detected dubious ownership in repository at .....Set the environment variable GIT_T
[Git]报错处理:fatal: detected dubious ownership in repository at ..... 异常信息 解决 异常信息 Windows PowerShell 版 ...
- fatal: detected dubious ownership in repository git报错解决
文章目录 环境 原因 解决方案 变更文件夹权限 设置git安全目录 环境 win10,git 原因 由于win10重装系统后,文件夹所有者变了,导致git pull等都出现了该问题 fatal: de ...
- git fatal: detected dubious ownership in repository 解决方法
前言 最近windows 10 更新后,发现非常卡顿,鼠标右键,偶尔要等10秒才能有反应,无法系统还原,但是可以通过装机软件,进行重置,类似于系统重新安装 重置 windows 10后,因为更新了用户 ...
- Git异常fatal: detected dubious ownership in repository at
Git报错: $ git remote fatal: detected dubious ownership in repository at 'C:/Users/DELL/code/larabbs' ...
- fatal detected dubious ownership in repository at解决办法
转自:noerror.net 问题描述 执行git submodule update --init --recursive更新子模块时报错: fatal: detected dubious owner ...
- fatal: detected dubious ownership in repository(已解决)
前言 最近windows 10 更新后,发现非常卡顿,鼠标右键,偶尔要等10秒才能有反应,无法系统还原,但是可以通过装机软件,进行重置,类似于系统重新安装 重置 windows 10后,因为更新了用户 ...
最新文章
- python字典作业_python第一天作业:字典
- 很好的理解梯度 散度 旋度 下三角运算 费曼物理讲义
- jmeter操作练习
- 意料之外,情理之中,Spring.NET 3.0 版本发布-
- java数组转list(Arrays .asList)
- 【Solidity】1.一个Solidity源文件的布局 - 深入理解Solidity 1
- Android Camera架构浅析
- 如何在cmd命令提示符里打开Python
- 超详细,手把手 教你 SQLyog 安装教程
- 非极大值抑制( Non-max suppression)
- “百度开放云编程马拉松”成都赛区19件作品及团队介绍
- cesium接入天地图影像与注记(经纬度)(cesium篇.70)
- 【Redis】keys命令和SCAN命令
- 2021年应用市场放假安排
- 【CSS】css文字超出显示省略号/文字超过三行显示省略号..
- 为什么abc三相电压加起来是0,而坐标变换之后在dq0坐标系中有值呢?——矢量控制中abc到dq0坐标系的坐标变换的思考
- 使用STM32的DFSDM外设来驱动PDM麦克风进行音频采集
- 如何利用计算机隐藏文件,如何查找隐藏的计算机文件夹
- mysql查询日期格式_mysql 日期格式化查询
- AtCoder Beginner Contest 167 D Teleporter 找周期