git pull aborted with error filename too long

前端 未结 7 1222
有刺的猬
有刺的猬 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 09:03

    Solution1 - set global config, by running this command:

    git config --system core.longpaths true
    

    Solution2 - or you can edit directly your specific git config file like below:

    YourRepoFolder -> .git -> config:

    [core]
        repositoryformatversion = 0
        filemode = false
        ...
        longpaths = true        <-- (add this line under core section)
    

    Solution3 - when cloning a new repository: here.

    0 讨论(0)
提交回复
热议问题