Member-only story

How to fix “Filename too long error” during git pull.

--

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>

--

--

Gain Java Knowledge
Gain Java Knowledge

Written by Gain Java Knowledge

The Java programming language is one of the most popular languages today. Stay up to date with news, certifications, free learning resources and much more.

No responses yet