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

这样目录下就会有源码:

来源:代码来源

相关推荐
Hungry_Shark17 小时前
IDEA版本控制管理之使用Gitee
java·gitee·intellij-idea
咖啡の猫1 天前
Android开发-选择按钮
android·gitee
咖啡の猫1 天前
Android开发-文本输入
android·gitee
小白嘎嘎3 天前
提速下载方法(gitee和迅雷)
gitee
a3158238064 天前
android13修改WiFi扫描二维码识别识别成功率不高的问题
gitee
前端小超超5 天前
如何配置capacitor 打包的安卓app固定竖屏展示?
android·前端·gitee
雁于飞6 天前
vscode中使用git、githup的基操
笔记·git·vscode·学习·elasticsearch·gitee·github
至善迎风8 天前
版本管理系统与平台(权威资料核对、深入解析、行业选型与国产平台补充)
git·gitee·gitlab·github·svm
咖啡の猫8 天前
Android开发-常用布局
android·gitee
NewChapter °10 天前
如何通过 Gitee API 上传文件到指定仓库
前端·vue.js·gitee·uni-app