git pull aborted with error filename too long

前端 未结 7 1220
有刺的猬
有刺的猬 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:01

    As someone that has ran into this problem constantly with java repositories on Windows, the best solution is to install Cygwin (https://www.cygwin.com/) and use its git installation under all > devel > git.

    The reason this is the best solution I have come across is since Cygwin manages the long path names so other provided commands benefit. Ex: find, cp and rm. Trust me, the real problem begins when you have to delete path names that are too long in Windows.

提交回复
热议问题