错误文件名太长,git pull中止 [英] git pull aborted with error filename too long

查看:458
本文介绍了错误文件名太长,git pull中止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Windows作为我的操作系统,并与使用Mac的朋友一起开展项目。他在代码中检查了我们的Github。



我正试着把他所做的所有事情都拉进去,并且因第三方代码的filename too long错误而中止。 >

我该怎么办? msysgit常见问题解答 Git不能创建长路径的文件夹< a>似乎不是最新的,因为它仍然链接到旧的msysgit 门票#110 。但是,根据后来的门票#122 ,问题已在msysgit 1.9中修复,因此:


  1. 更新到msysgit 1.9(或更高版本) $ b
  2. 到达您的Git存储库,其中存在长路径问题

  3. 使用启用长路径支持git config core.longpaths true


  4. 到目前为止,它对我非常有用。



    请注意对122号票的评论中的重要通知




    不会回到这里,并且抱怨它打破了Windows资源管理器,
    cmd.exe,bash或任何您使用的工具。


    I'm using Windows as my OS, and working on a project with a friend who's using a Mac. He checked in code to our Github.

    I was trying to git pull everything he did and it aborted with "filename too long" errors of 3rd party code.

    What can I do?

    解决方案

    The msysgit FAQ on Git cannot create a filedirectory with a long path seems not up to date, as it still links to old msysgit ticket #110. However, according to later ticket #122 the problem has been fixed in msysgit 1.9, thus:

    1. Update to msysgit 1.9 (or later)
    2. Launch Git Bash
    3. Got to your Git repository which 'suffers' of long paths issue
    4. Enable long paths support with git config core.longpaths true

    So far, it's worked for me very well.

    Be aware of important notice in comment on the ticket #122

    don't come back here and complain that it breaks Windows Explorer, cmd.exe, bash or whatever tools you're using.

    这篇关于错误文件名太长,git pull中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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