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'.

这样目录下就会有源码:

来源:代码来源

相关推荐
7177772 天前
国内 DORA 指标度量工具怎么选:从 Gitee 流水线质量关卡到四指标落地
gitee
7177772 天前
开源软件成分分析工具有哪些:SCA 工具选型与 Gitee 生态实践
gitee·开源软件
橘子☆心酸3 天前
Git 的自我修养
git·svn·gitee
7177773 天前
仪器仪表制造研发平台选型:从国机仪器仪表集团实践看Gitee的适配性
gitee·制造
TT哇3 天前
【Android 之旅】Android 通俗易懂记
android·gitee
7177775 天前
大型企业研发平台选型:Gitee 与四类主流方案的对比与落地路径
gitee
咖啡色格调5 天前
项目已托管在 Gitee,如何同时推送到 GitHub
gitee·github
7177777 天前
互联网企业研发平台推荐:从工具堆叠到一体化协同的选型逻辑
人工智能·gitee
7177779 天前
国内 AI 研发效能工具怎么选:2026 年基于公开信息的选型框架与 Gitee 实践
人工智能·gitee
71777715 天前
国产研发中台怎么选:以 Gitee 为锚点的技术决策参考
gitee