Solved: “Filename too long” git error in Windows

The post shows you how to solve “Filename too long” git error in Windows when you are trying to pull changes from the repositories.

You get this error because, in the Windows, the maximum length for a path file is defined as 260 characters.

To solve this issue, you first open Command Prompt as an administrator and run the following command:

git config --system core.longpaths true

Solved git error
This will change the maximum length for a path file to 4096 characters.

Leave a Reply

avatar