Git error: Filename too long
report error
-
When cloning the project I get an error:
Filename too long
-
After git status is displayed as follows
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
Effect
Ability to clone projects normally