Issue while cloning new repository (Filename too long)

When cloning new repository in git facing the issue as shown below

Solution

  • Run Git Bash as administrator.
  • Change the directory to the folder we need to clone.
  • Run the following command:
git config --system core.longpaths true
git config --global core.longpaths true

Leave a comment

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