...
The change in Windows and Git behaviour detailed below will allow paths up to 4096 characters long.
Info |
---|
NOTEFrom Microsoft… "Starting in Windows 10, version 1607, (and Windows 2016 Server) MAX_PATH limitations have been removed from common Win32 file and directory functions. However, you must opt-in to the new behaviour." |
Here's how to enable Windows long file paths on in the Windows registry:
The Easy Way
The easy way is to use
regedit.exe
to modify the registry key which enables or disables the new long path behaviour. To enable long path behaviour set the following registry key
...
:
Code Block HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled (Type: REG_DWORD) = 1
The Longer Way
Open Group Policy Editor by typing the following command in a Windows command window.
Code Block language text gpedit.msc
Navigate to the following directory: Local Computer Policy → Computer Configuration → Administrative Templates → System → Filesystem
Double-click the Enable NTFS long paths option.
Choose Enabled
Click Apply and OK
Final Step: Update the Git Configuration
Enable long paths on the Git client installed on your Bamboo Host (this will be automatically added to your git config files):
Code Block language text git config --system core.longpaths true
Page Properties | ||
---|---|---|
| ||
|
...