If you run Windows 10 Home Edition you could change you Registry to enable Long Paths.
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
in regedit and then set LongPathsEnabled
to 1
.
If you have Windows 10 Pro or Enterprise you could also use Local Group Policies.
Go to Computer Configuration > Administrative Templates > System > Filesystem
in gpedit.msc
, open Enable Win32 long paths
and set it to Enabled
.
git config --system core.longpaths true