error: invalid path ‘drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c‘

error: invalid path 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c'

1.报错及解决办法

javascript 复制代码
Cloning into 'Linux'...
remote: Enumerating objects: 66291, done.
remote: Total 66291 (delta 0), reused 0 (delta 0), pack-reused 66291
Receiving objects: 100% (66291/66291), 175.34 MiB | 5.31 MiB/s, done.
Resolving deltas: 100% (5827/5827), done.
error: invalid path 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

解决方法:

javascript 复制代码
git config core.protectNTFS false
git reset --hard HEAD
javascript 复制代码
$ git reset --hard HEAD
error: unable to stat just-written file drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c: No such file or directory
error: unable to stat just-written file drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h: No such file or directory
error: unable to stat just-written file include/soc/arc/aux.h: No such file or directory
Updating files: 100% (62299/62299), done.
fatal: Could not reset index file to revision 'HEAD'.

这样目录下就会有源码:

来源:代码来源

相关推荐
mrsyf1 天前
VSCode的插件配置同步到gitee
vscode·gitee
generallizhong2 天前
android TAB切换
android·gitee
艾莉丝努力练剑2 天前
【Git:基本操作】深度解析Git:从初始Git到熟悉基本操作
大数据·linux·c++·人工智能·git·gitee·指令
YuanDaima20483 天前
GitHub 与 Gitee 多平台 SSH Key 配置指南
gitee·开源·ssh·github·开源软件·key·免密登录
TTGGGFF4 天前
开源项目分享:Gitee热榜项目 2025-10-28 日榜
gitee·开源
hashiqimiya4 天前
Android和springboot的后端json数据库mysql传送
gitee
峥嵘life4 天前
Android EDLA项目导入mainline包后蓝牙签名报错分析解决
android·gitee
熙客5 天前
Gitee:代码管理
gitee·devops·源代码管理
阿部多瑞 ABU8 天前
# AI高精度提示词生成项目——3D-VR 课件—— 最终仓库级 AI 提示词:生成《EduVR Studio》—— 专业级 3D-VR 课件创作平台
gitee·开源·github·aigc·ai编程·1024程序员节
胖咕噜的稞达鸭9 天前
封装map和set(红黑树作为底层结构如何实现map和set插入遍历)
c语言·数据结构·c++·算法·gitee·哈希算法