Git pull - No space left on device error with free space left

Git pull - No space left on device error with free space left

我在尝试 git 拉取时遇到此错误:

remote: Counting objects: 6, done. remote: Compressing objects: 100% (6/6), done. remote: Total 6 (delta 0), reused 0 (delta 0) error: unable to create temporary sha1 filename : No space left on device

fatal: failed to write object fatal: unpack-objects failed

我检查了一下,我只使用了 57% 的磁盘 space,并且有足够的可用空间 space 用于拉取操作。 上次pull是大约一周前,并没有这样的问题。 可能是什么原因?

我的问题与 this one. 不重复 问题是对象已经存在,而我的问题是我没有得到免费的 space 错误,而 df -h 仅显示 57% 的使用率。

如果您有磁盘 space,它可能是 inodes。使用以下命令检查磁盘上剩余的 inodes 数量(如果您使用 Linux / Mac):

df -ih

来自维基百科:

The inode (index node) is a data structure in a Unix-style file system that describes a file-system object such as a file or a directory. Each inode stores the attributes and disk block location(s) of the object's data. File-system object attributes may include metadata (times of last change, access, modification), as well as owner and permission data.

磁盘上的文件数量很重要,因此请尝试清除磁盘上的一些文件(也不是大文件)。