Git error: Filename too long

Git error: Filename too long

report error

  • When cloning the project I get an error:Filename too long
    insert image description here

  • After git status is displayed as follows
    insert image description here

reason

Git can create a file name with a length of 4096, but in windows it is up to 260, because git uses the old version of windows api, so it stepped on a pit.

solution

On the command line (or Git Bash), enter the following configuration command to enable长路径

git config --global core.longpaths true
  • example

insert image description here

Effect

Ability to clone projects normally

insert image description here

Guess you like

Origin blog.csdn.net/sgx1825192/article/details/129745826