git reports "No space left on device", but df -h says there is is 2.5G available [duplicate]

Verify system inodes:

root #df -i /

If there is approaching 100% usage, try to using

xdiskusage /

To find out what is occupying the inodes.

There is, sadly enough, no way to increase the number of inodes on a file system once the file system has been created.

Except LVM, which can be expanding the number of inodes with resize2fs

Referred to:No space left on device while there is plenty of space available