DEV Community

Jonas Samuelsson
Jonas Samuelsson

Posted on

4 3

git clone and long paths on windows

If you ever run in to the issue that you can't clone a git repo because it contains paths longer than 260 characters on windows run

git config --global core.longpaths true
Enter fullscreen mode Exit fullscreen mode

There is a registry entry for long paths as well but that doesn't help here.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000001
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay