1

So I'm trying to do a git clone in windows CMD. But I end-up with following error. I tried every work around. But had no luck.

Cloning into 'tomato-api'...
remote: Counting objects: 67887, done.
remote: Total 17346 (delta 0), reused 0 (delta 0), pack-reused 17346
Receiving objects: 100% (67887/67887), 643.56 MiB | 742.00 KiB/s, done.
Resolving deltas: 100% (7654/7654), done.
fatal: cannot create directory at 'vegitables/market/github.com/docker/distribution/sharing/united-streets/generated_certs.d/localregistry:5440': Invalid argument
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
mac
  • 863
  • 3
  • 21
  • 42
  • Please check the permission of the folder where you try to take checkout – Dipanwita Kundu Apr 10 '18 at 11:03
  • Possible duplicate of [how do I clone files with colons in the filename](https://stackoverflow.com/questions/5991805/how-do-i-clone-files-with-colons-in-the-filename) – phd Apr 10 '18 at 11:48

2 Answers2

1

The git repository you are trying to clone from has a directory with path consisting of the Windows reserved word - colon (:). Therefore, that directory is not able to be created.

junkangli
  • 1,152
  • 7
  • 14
0

Another approach more recently discussed is to:

Using git filter-repo, you can remove them from the full history of the repository.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250