Reputation: 1500
I have files with the following name in my repository:
*.example.com.crt
The thing is that I can't clone the repository on windows.
error: unable to create file *.example.com.crt (Invalid argument)
Checking out files: 100% (6122/6122), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
Do you know any workaround for that?
Upvotes: 7
Views: 3370
Reputation: 21
There is a workaround if your repository is on GitHub, you can launch Visual Studio Code IDE right in the browser. Just open your repository in GitHub and press .
. In the browser, you should be able to modify even the files with asterisks in their filenames.
Upvotes: 0
Reputation: 47022
Unfortunately, no. Windows disallows certain characters in the filename, and Git will support just about anything, so it's up to you to manage it. I think your best solution is to simply rename the file.
Personally, I'd avoid using *
in a filename anyways, since it's a glob character.
Upvotes: 9