Fix Filename too long | Git | Remove path limit | Windows - Longpaths

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
once up I'm troubleshoot welcome back to another video in the sky I'll be showing you how to fix an annoying issue that could be affecting you if you're on Windows and you're an avid GitHub or get user for example I use stable diffusion a lot and when I'm trying to update sub modules as you can see here git sub module update whenever I run this command here I get a ton of Errors thrown back at me saying file name is too long why is this well Windows has a rather short file name limit by default we can change this but the simplest way around this issue is to move something from say our desktop to the root of our drive for example I can move it from my desktop and the AI folder to say C drive AI making a new AI folder here for example that would be the simplest solution but if you're still getting this and files are nested way too deep in different folders or just have names that are way too long we can work around this by default the windows API has a limitation of 260 characters for a file path these ones here obviously just a bit too long but they're attached to C uses my username desktop and then maybe the folder name so how do we get around this well in Windows 10 and above we can lift the max path limitation we can change the max path limitations of 260 and set it all the way up to up to a really absurd number in the description down below you'll find a Powershell command hit start type in Powershell right click and run as administrator now inside of Powershell I'll paste in the command and hit enter then we've now enabled long paths to enable it for git will run git config hyphen hyphen system space core.long pods true when weaved answer we should be able to run commands like before and they should work a bit happier for example this one here git sub module update in a recursive Q running the command again this time after updating files we get to the same git sub module update but this time we don't get any errors thrown back at us we've now successfully solve the issue of long paths not working on our Windows PC sweet anyways it's valid for this super quick guide hopefully you found this useful mine's been troubleshoot and I'll see you all next time ciao
Info
Channel: TroubleChute
Views: 15,360
Rating: undefined out of 5
Keywords: how to fix path too long, path too long windows 10, how to fix path too long and file name is too long errors in windows, file too long, path too long error when extracting zip file, windows filename too long, filename too long windows 11, path too long, destination path too long, the filename is too long for the destination folder, filename too long, git error, filename too long to open, enable win32 long paths, source path too long, unable to create file, file path too long
Id: aNpy9r9wkE0
Channel Id: undefined
Length: 2min 20sec (140 seconds)
Published: Sun Jan 15 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.