git 错误:无法处理 https
当我尝试使用 git clone https://xxx 时,出现以下错误
我不处理协议“https”
有人可以帮我吗?
完整消息:
dementrock@dementrock-A8Se:~$ git clone https://git. innostaa.com/innostaa.git
克隆到 innostaa...
致命:无法找到“https”的远程助手
dementrock@dementrock-A8Se:~$ git --version
git version 1.7.4
when I tried to use git clone https://xxx I got the following error
I don't handle protocol 'https'
Could anyone please help me?
full message:
dementrock@dementrock-A8Se:~$ git clone https://git.innostaa.com/innostaa.git
Cloning into innostaa...
fatal: Unable to find remote helper for 'https'
dementrock@dementrock-A8Se:~$ git --version
git version 1.7.4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
修复了 Windows 上 Git 1.7.9 的此问题。 Windows 上的许多 GIT 实例似乎都会发生这种情况。与命令行中的 url 未正确转义有关。
解决方案:将 git 存储库 URL 放在单引号 'https://.......' 中
Fixed this problem for Git 1.7.9 on Windows. Seemed to happen with many GIT instantiations on Windows. Had to do with the url not being properly escaped in the command line.
Solution: Put the git repository URL in single quotes 'https://.......'
git
版本0.99.9i
可能不支持https
协议。尝试安装更新版本的
git
。最简单的解决方案是通过 apt-get 安装它:之后检查是否使用了正确的版本:
如果返回的字符串不是 /usr/bin/git,那么您的
PATH
中有另一个旧版本的git
,它掩盖了较新的版本。将其删除。如果您不想通过 apt-get 安装 git,或者您的计算机没有管理员权限,则可以从源代码构建它。你可以从 git 网站 下载它们,编译应该很简单
:将
$HOME/install/bin
添加到您的PATH
中。Version
0.99.9i
ofgit
probably does not supporthttps
protocol.Try to install a more recent version of
git
. The easiest solution would be to install it viaapt-get
:After that check that the correct version is used:
If the returned string is not
/usr/bin/git
, then you have another older version ofgit
in yourPATH
that is masking the more recent one. Remove it.If you do not want to install
git
viaapt-get
or if you do not have administrator privilege on your machine, you can built it from source. You can download them from git website, and compilation should be as simple as:After that, you'll have to add
$HOME/install/bin
to yourPATH
.我有同样的问题,但原因是我的 .git 配置。我更改了配置文件如下:
.git/config
rocky-bayou-4315 是我的 heroku 应用程序,它是由
$ heroku create
命令创建的。I have same problem but the reason was in my configuration of my .git. I changed config file as follows:
.git/config
rocky-bayou-4315 is my heroku application that has been created by
$ heroku create
command.我在尝试“获取上游”时遇到了同样的问题。我通过获取 Git 只读地址而不是 https 解决了这个问题。
细节:
我有一个分叉存储库,需要从其原始存储库进行更新。使用 github 的帮助,我添加了一个远程上游并尝试获取它。
然后我转到 Git-hub,通常在那里获取存储库的地址,我单击“Git-read only”按钮并获得一个新的 URL。我删除了过去的上游并添加了另一个带有新 URL 的上游,效果非常好。
I had the same problem while trying to "fetch upstream". I solved it by getting the Git-read only address instead of the https.
details:
I had a forked repository that needed updated from its original repo. Using github's help I added a remote upstream and tried to fetch it.
I then went to Git-hub and where I usually get the address of the the repo I clicked on the "Git-read only" button and got a new URL. I removed my past upstream and added another one with the new URL, which worked perfectly.
刚刚在 cygwin 上使用 git 1.7.9 时遇到了这个问题。
使用双引号“”包裹https URL可以解决我的问题。
例如:
git clone "https://github.com/joyent/node.git"
Just encountered this problem with git 1.7.9 on cygwin.
Using the double quotes "" to wrap the https URL can solve my problem.
eg:
git clone "https://github.com/joyent/node.git"