how do I clone files with colons in the filename

前端 未结 3 1671
自闭症患者
自闭症患者 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 09:52

    You can clone the repo on a linux environment, tar it up and copy it to windows, and untar it on windows with tools such as 7zip. 7zip will replace the colon with underscore, and preserve all the git information. As long as that file does not change, you'll be all set for a while. Those files tend not to change much anyway (for example, I have a cert file with a colon in the middle).

提交回复
热议问题