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

preview_player
Показать описание
Trying to run git commands, but running into "Filename too long" or "Unable to create file" errors? This simple guide shows you how to remove the Windows path length limit to allow git and other programs to use longer file paths more reliably.

Timestamps:
0:00 - Intro
0:28 - Moving files to a lower path (workaround)
0:53 - The Windows path limit
1:06 - Enable Longpaths on Windows
1:30 - Enable Longpaths for git (4096 chars)

#Windows #Git #Guide
-----------------------------
-----------------------------

Everything in this video is my personal opinion and experience and should not be considered professional advice. Always do your own research and ensure what you're doing is safe.
Рекомендации по теме
Комментарии
Автор

Thanks, this saved me from having to fire up a Linux VM just to compile a Github project.

stumper
Автор

When I enter, git show-ref, and then hit enter I get"git" is not recognised as an internal or external command". In Windows Powershell, when I enter "git config --system core.longpaths true", I get git :The term git is not recognised as the name of a cmdlet, function, script file or operation program."

charlesmaou
Автор

dude, u are a life saver i had an insane struggle with this for awhile and had no clue what it was, i tried many solutions but only this worked, amazing keep up the good

slixxfish
Автор

Great video, I was trying to figure out a way to move a large documents folder which had long filenames in it rejecting my "move folder". Moved to the root and back, thanks

timetorelaxfocus
Автор

thanks, bro.
It's a perfect solution

rafi_sharkar_
Автор

yeah mine get this error, git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ git config --system core.longpaths true
+ ~~~
+ CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException . first part worked but i have this

skrillZUPOLARCOINSParjol
Автор

How do i enable this for OneDrive? People are creating ranges of subfolders and then use 140 caracters in the PDF name.

patricksimons
Автор

how to you do this with external drives? the video only works for the local machine or c:drive

echy
Автор

i cant enter it it dosent let me i get an error

naglisbaltmiskis
Автор

arent you that guy who owns the gpu optimization channel?

Taqes
Автор

I did this and now I can't open my files. It says the path isn't there. So now I have to call a tech guy so I don't lose my files.

bchpurlo
Автор

thanks, this completely failed. thanks for wasting my time

The_Canadian_