describe
Encountered a small problem, Git prompts when pulling the code Filename too long
, as shown in the figure
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
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
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!