On Windows, the default maximum path length is 260 characters. Git sometimes hits this limit when you have deeply nested folders or long filenames (e.g., spark-jobs/long-folder-name/.../file-name.yml
).
If you're on Windows 10 or later, run this in your Git Bash or CMD:
bash: git config --system core.longpaths true
You might need admin privileges to run this.
This allows Git to use Windows’ newer APIS that support long paths beyond 260 characters.
As a workaround (especially if you're still hitting limits), you can:
bash: C:\src\myrepo
This reduces the total path length Git has to deal with.
3. Check If It's Configured Properly
Run:
bash: git config --show-origin core.longpaths
You should see:
vbnet file:... core.longpaths=true