Skip to content

Commit 6bd107b

Browse files
committed
Updated Git cannot create a file or directory with a long path (markdown)
1 parent 5a5d8d0 commit 6bd107b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Git-cannot-create-a-file-or-directory-with-a-long-path.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ That being said, long paths support for C-based git commands can be enabled by s
1212
git config core.longpaths true
1313
```
1414

15+
> [!NOTE]
16+
> In addition to setting the git configuration the OS also needs to be configured to have longpaths enabled via the [Registry](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#registry-setting-to-enable-long-paths) or group policy.
17+
1518
# Technical background
1619

1720
The root cause of the technical limitation of 260 chars lies deeply within the Win32 API.

0 commit comments

Comments
 (0)