Member-only story
How to fix “Filename too long error” during git pull.
Mar 22, 2024
you can fix this issue by running the below command in my git cmd :
git config --system core.longpaths true
Running git config --system core.longpaths true
configures Git to support file paths longer than 260 characters on Windows systems. This can be useful if you encounter issues related to long file paths while working with Git repositories.
After that run git pull command again. It should work now.
Another way (only for this clone):
git clone -c core.longpaths=true <repo-url>