【发布时间】:2013-04-09 17:42:17
【问题描述】:
我正在尝试在 Windows 7 机器(Windows 8 Hyper V 中的虚拟机)上安装 git 和 tortoisegit。
我按照说明进行操作,但现在当我尝试克隆某些内容时,我收到错误 “我不处理协议 'git clone http'”
关于发生了什么的任何线索?
【问题讨论】:
标签: git windows-7 tortoisegit
我正在尝试在 Windows 7 机器(Windows 8 Hyper V 中的虚拟机)上安装 git 和 tortoisegit。
我按照说明进行操作,但现在当我尝试克隆某些内容时,我收到错误 “我不处理协议 'git clone http'”
关于发生了什么的任何线索?
【问题讨论】:
标签: git windows-7 tortoisegit
您可能正在输入命令 git clone http://repo/url 在它只需要 url 的地方,即 http://repo/url
【讨论】:
git clone http://repo/url。
git clone http://repo/url,而不是实际的 URL http://repo/url
git clone 查找<options>,然后查找<repo>。通常你可以跳过这些选项,但在最新版本的 Windows git bash 中,我必须添加一个选项,git clone https... 才能工作。
如果您不使用选项,只需将git clone -q https.... 用于“安静”选项,它应该可以正常工作。
【讨论】:
引用网址。例如,
git clone "https://github.com/git/git.git"
我只需要在 Windows 上使用 Git Bash(例如 MINGW64)执行此操作。如果使用 Windows cmd.exe shell,则不需要引号。
【讨论】: