-1

I am getting below error while cloning code using GitHub Desktop

Cloning into 'D:\codebase\pro\xyz'...
Receiving objects: 100% (781963/781963), 342.31 MiB | 4.55 MiB/s, done.
Resolving deltas: 100% (480411/480411), done.
fatal: cannot create directory at 'lengthy_path/Clothing_view-all_Desktop1': Filename too long
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

Is there any setting that I should do in GitHub Desktop?

Note I am able to clone it successfully using command prompt but when I use the same in GitHub Desktop, it loses a few files hence causing a lot of confusion.

I ran below command

git config --system core.longpaths true git config --global core.protectNTFS false (Installed https://git-lfs.com/)

toyota Supra
  • 3,181
  • 4
  • 15
  • 19

0 Answers0