Skip to content

Instantly share code, notes, and snippets.

View PratikDeshmukh-avisys's full-sized avatar

Pratik Deshmukh PratikDeshmukh-avisys

View GitHub Profile
@leodutra
leodutra / windows-10-git.md
Last active June 17, 2024 05:02
Enable long paths on Windows 10 and Git

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