由于文件名中的字符无效,在Windows上克隆存储库时出错 [英] Error cloning a repository on Windows due to invalid chars in file name

查看:51
本文介绍了由于文件名中的字符无效,在Windows上克隆存储库时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我要克隆路径中包含:(冒号)的存储库时,出现此错误:

When I want to clone repository that contain : (colon) in the path I got this error:

克隆成功,但检出失败.

Clone succeeded, but checkout failed.

我尝试使用git cli和git gui,但遇到了相同的错误.这个问题有解决方案吗?

I tried to use git cli and git gui and I got same error. Is there any solution for this problem?

推荐答案

如果您要从GitHub克隆并且是您的存储库,则可以编辑文件内容并直接在GitHub上重命名它们.

If you want to clone from GitHub and if it's your repository, you can edit file content and rename them right on GitHub.

单击要编辑的文件,您将在文件开头看到

Click on the file you want to edit and you will see at the beginning of a file:

单击图标,重命名文件,然后在下方键入提交消息并提交.然后,您可以尝试克隆.

Click on the pen icon, rename file and below type commit message and commit. Then you can try to clone.

注意:如果不是您的仓库,请尝试先将其分叉,然后执行上述相同的步骤.

NOTE: If it's not your repo, try to fork it first then do the same steps mentioned above.

这篇关于由于文件名中的字符无效,在Windows上克隆存储库时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆