DEV Community 👩‍💻👨‍💻

Jonas Samuelsson
Jonas Samuelsson

Posted on

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)

🌚 Friends don't let friends browse without dark mode.

Just kidding, it's a personal preference. But you can change your theme, font, etc. in your settings.

The more you know. 🌈