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
Hi,
I am trying to clone the repository from Bitbucket to the VS Code using Git cloning and I am getting failures (Red) on few folders particularly on Portal Folders. Thought it might be because of Long Paths so I have tried above suggestion but still it didn't work and I am using Windows 11 Pro. Could you able to suggest any resolutions for this issue? Thanks