How to fix Git Clone “Filename too long” Error in Windows?

There is an option to do as part of the “git clone” command if you wish to fix the error while cloning the repository. Please enable flags to accept using the “-c” option and then pass core.longpaths=true as below.

git clone -c core.longpaths=true

Leave a comment

Your email address will not be published. Required fields are marked *