how do I clone files with colons in the filename

前端 未结 3 1670
自闭症患者
自闭症患者 2020-11-29 09:11

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 so

3条回答
  •  庸人自扰
    2020-11-29 10:01

    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.

提交回复
热议问题