warning: Clone succeeded, but checkout failed

Try this out:

git config --system core.longpaths true

Source


The following answer worked for me

  1. Open either cmd or git bash and run it as an administrator
  2. Give the following command on the cmd or git bash which you ran as an administrator above
git config --system core.longpaths true
  1. This will allow to access long file names globally
  2. Now you can clone the repositories without any issue with Filename too long