git pull aborted with error filename too long

前端 未结 7 1275
有刺的猬
有刺的猬 2020-12-07 08:11

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

7条回答
  •  眼角桃花
    2020-12-07 08:51

    On windows run "cmd " as administrator and execute command.

    "C:\Program Files\Git\mingw64\etc>"
    "git config --system core.longpaths true"
    

    or you have to chmod for the folder whereever git is installed.

    or manullay update your file manually by going to path "Git\mingw64\etc"

    [http]
        sslBackend = schannel
    [diff "astextplain"]
        textconv = astextplain
    [filter "lfs"]
        clean = git-lfs clean -- %f
        smudge = git-lfs smudge -- %f
        process = git-lfs filter-process
        required = true
    [credential]
        helper = manager
    **[core]
        longpaths = true**
    

提交回复
热议问题