Tuesday 24 August 2021

git pull error: cannot stat Filename too long

In this article, we are going to discuss about an issue related to GIT
that while trying to take latest from one of the branch. And after pull command facing issue as 

git pull error: cannot stat Filename too long

Also noticed that other teammates have not this issue.

After spending some time on this issue found the fix, so thought to share with community.

Fix:

just open GIT Command prompt

first I tried git pull but the same issue because of Windows API limitation of file paths having 260 characters or fewer.

To fix this issue ran below command

git config --system core.longpaths true

after this trigger git pull and it works.


Hope this will help

No comments:

Post a Comment