最佳答案
我在工作中遇到了一些问题 文件被下载到我的本地 git 文件夹中
git checkout -f HEAD
给我-
“由于磁盘空间不足而导致无法写入新的索引文件错误”。
我已经从我的计算机手动删除大文件,但仍然得到相同的错误。
Cloning into 'ffmpeg'...
remote: Counting objects: 7890, done.
remote: Compressing objects: 100% (4412/4412), done.
Receiving objects: 100% (7890/7890), 299.75 MiB | 24.19 MiB/s, done.
remote: Total 7890 (delta 3346), reused 7846 (delta 3317)
Resolving deltas: 100% (3346/3346), done.
Checking out files: 100% (7019/7019), done.
fatal: unable to write new index file
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'