Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do I clone files with colons in the filename

Tags:

When I clone the repo using msysgit, all the files with spaces in the filename are not brought down, and then show as deleted in the status.

The filenames looks something like this: styles-ie (1:12:11 6:02 PM).css so it might actually be the colon or brackets?

How can I fetch those files to bring my local repo inline with the origin?

like image 666
Jonathan Day Avatar asked May 13 '11 12:05

Jonathan Day


People also ask

Can you have colon in filename?

On Windows systems, files and directory names cannot be created with a colon (:).

How do you put a colon in a filename?

The character code for the colon-like symbol is 02F8. The reason for the Subscript setting is to position the symbol lower relative to its vertical position. The bold and larger font settings are applied so that the symbol is more discernible on the page, and have no affect when used in a file or folder name.


1 Answers

If you try doing:

touch "styles-ie (1:12:11 6:02 PM).css" 

you will see that you cannot create it on Windows.

Basically, the repo has the file ( the blob and the tree entry ) but you cannot checkout on Windows as git would be unable to create such a file. No other way but to change the filename.

like image 97
manojlds Avatar answered Oct 23 '22 08:10

manojlds