git clone No space left on device

本文解决gitclone操作中因磁盘空间不足及内存不足导致的问题,提供扩展虚拟机磁盘及增加内存的方法,确保gitclone及checkout操作成功。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题git clone http://xxx.git 出现:
fatal: cannot create directory at ‘xxxxxx’: No space left on device
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’

问题:cd g-bash: cannot create temp file for here-document: No space left on device
原因:虚拟机磁盘不够。
解决:扩展磁盘链接:https://www.cnblogs.com/dannygoo/p/6233451.html

安装好问题:fatal: Out of memory, malloc failed (tried to allocate 409866605 bytes)
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’
原因:内存不够
解决:https://blog.youkuaiyun.com/xuanyuanlei1020/article/details/77867355

fatal: unable to access 'https://github.com/07bug/HiSTBLinuxV100R005C00SPC060/': GnuTLS recv error (-110): The TLS connection was non-properly terminated. root@hi3798mv100:~# git clone https://github.com/07bug/HiSTBLinuxV100R005C00SPC060 Cloning into 'HiSTBLinuxV100R005C00SPC060'... remote: Enumerating objects: 31916, done. remote: Counting objects: 100% (963/963), done. remote: Compressing objects: 100% (618/618), done. remote: Total 31916 (delta 457), reused 345 (delta 345), pack-reused 30953 (from 1) Receiving objects: 100% (31916/31916), 811.07 MiB | 3.14 MiB/s, done. Resolving deltas: 100% (13792/13792), done. error: unable to write file tools/linux/toolchains/aarch64-histbv100-linux/bin/aarch64-gcc51_glibc222-linux-gnu-nm error: unable to write file tools/linux/toolchains/aarch64-histbv100-linux/bin/aarch64-gcc51_glibc222-linux-gnu-objcopy error: unable to write file tools/linux/toolchains/aarch64-histbv100-linux/bin/aarch64-gcc51_glibc222-linux-gnu-objdump error: unable to write file tools/linux/toolchains/aarch64-histbv100-linux/bin/aarch64-gcc51_glibc222-linux-gnu-ranlib error: unable to write file tools/linux/toolchains/aarch64-histbv100-linux/bin/aarch64-gcc51_glibc222-linux-gnu-readelf error: unable to write file tools/linux/toolchains/aarch64-histbv100-linux/bin/aarch64-gcc51_glibc222-linux-gnu-size error: unable to write file tools/linux/toolchains/aarch64-histbv100-linux/bin/aarch64-gcc51_glibc222-linux-gnu-strings error: unable to write file tools/linux/toolchains/aarch64-histbv100-linux/bin/aarch64-gcc51_glibc222-linux-gnu-strip fatal: cannot create directory at 'tools/linux/toolchains/aarch64-histbv100-linux/lib': No space left on device warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry with 'git restore --source=HEAD :/'
06-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

_小白鱼儿_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值