How to fix "Filename too long error" during git clone

  1. Start Git Bash as Administrator
  2. Run command git config --system core.longpaths true

Another way (only for this clone):

git clone -c core.longpaths=true <repo-url>


Instead of git config --system core.longpaths true try ,

git config --global core.longpaths true , 

--system will set the variables for all users on the system , but what you are looking for is to the set it for currently logged in user .