Git error Filename too long

describe

Encountered a small problem, Git prompts when pulling the code Filename too long, as shown in the figure

insert image description here

At the beginning, I had a problem with the tool that comes with git at first, and then I downloaded one tortoisegit, but there was still a problem. It was a 22G file, so I deleted it and downloaded it again.

solve

Later, refer to the tutorial on the Internet, the screenshot is as follows
https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows

insert image description here
Run this code directly and write a configuration

git config --system core.longpaths true

Or you can directly modify the configuration file

core.longpaths=true

insert image description here
This way you can directly avoid this problem, easy and happy. In order to reduce the use of the command line, I recommend using a visualization tool. For example tortoisegit, in this tool, you can directly edit configuration items. This is the end, thank you!

insert image description here

Guess you like

Origin blog.csdn.net/QQ727338622/article/details/130930094