Clone repo with invalid filenames on Windows?

There’s a fairly large repo (lot of collaborators) that I am trying to clone, but I’m on Windows and there are a bunch of files (which I don’t care about) which have : in their filenames.  This causes errors in cloning the repo using Github Desktop.

Is there a way to clone everything except the illegal files, or is renaming those files the only option?  They are irrelevant to my purposes.

Renaming the files to not use : is definitely one solution! That would change the repository for everyone - would that be ok?

I found this stackoverflow answer that lets you clone the repo and delete all the files that contain : using the command line:

(It’s the answer that starts “Good news”) Because you don’t care about the files with : in the name you’ll only need to do the first part.

1 Like