git checkout-index:无法创建文件(文件名太长) [英] git checkout-index: unable to create file (File name too long)

查看:366
本文介绍了git checkout-index:无法创建文件(文件名太长)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我检查了我的存储库,但是有一个文件名太长的文件:

 〜/ git $ git clone git + ssh://server/git/ma.git 
在〜/ git / ma / .git /
中初始化了空的Git存储库remote:计数对象:1855,done。
remote:压缩对象:100%(1594/1594),完成。
remote:共计1855(delta 656),重用1078(delta 222)
接收对象:100%(1855/1855),54.14 MiB | 701 KiB / s,完成。
解析三角洲:100%(656/656),完成。
错误:git checkout-index:无法创建文件four_folder / $ VERYLONGNAME.pdf(文件名太长)



<$> VERYLONGNAME长约160个字符。我的文件系统在Ubuntu 10.10上是ext4。



任何人都可以帮我查看长文件吗?

解决方案

您可能需要禁用主目录加密或外部结账,如 / tmp



我认为它限制文件名大小至144个字元。

http:// ubuntuforums.org/showthread.php?t=1173541

http://ubuntuforums.org/showthread.php?t=1258294


I check out my repository but there is a file with too long file name:

~/git$ git clone git+ssh://server/git/ma.git
Initialized empty Git repository in ~/git/ma/.git/
remote: Counting objects: 1855, done.
remote: Compressing objects: 100% (1594/1594), done.
remote: Total 1855 (delta 656), reused 1078 (delta 222)
Receiving objects: 100% (1855/1855), 54.14 MiB | 701 KiB/s, done.
Resolving deltas: 100% (656/656), done.
error: git checkout-index: unable to create file four_folder/$VERYLONGNAME.pdf (File name too long)

$VERYLONGNAME is about 160 chars long. My file system is ext4 on Ubuntu 10.10.

Can anyone help me to check out the long file?

解决方案

You might need to disable home directory encryption or checkout outside like /tmp

I think it limits the filename size to 144 characters.

http://ubuntuforums.org/showthread.php?t=1173541

http://ubuntuforums.org/showthread.php?t=1258294

这篇关于git checkout-index:无法创建文件(文件名太长)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆