我无法克隆HTTPS存储库。我可以克隆SSH回购很好,但不是HTTPS回购。我无法测试GIT协议,因为我位于公司防火墙后面。

这就是我要做的:

$ git clone https://github.com/nvie/gitflow.git
Cloning into gitflow...
fatal: Unable to find remote helper for 'https'

到目前为止,我尝试了以下(基于谷歌搜索)

通过apt-get清洗和安装Git 通过apt-get为Git安装build-deps 安装curl开发库 安装外派库 下载Git源代码并使用以下方法构建: ./configure——prefix=/usr——with-curl——with-expat 还尝试在curl binary(。——prefix=/usr——with-curl=/usr/bin/curl)

我已经试遍了我在网上能找到的所有东西,但都没有成功。有人能帮帮我吗?

转到版本 = 1.7.6.4

操作系统 = Ubuntu 11.04


当前回答

我今天遇到了同样的问题:git http在多年的快乐服务后崩溃了。它似乎是由一些Perl库更新引起的。在网上尝试了一些明智的建议,没有一个有效。受够了,我只是删除了所有git的东西,从http://git-scm.com/获得了一个新的tarball,编译和安装,一切恢复正常。试一试,或者你可以深入挖掘你的日志…

其他回答

我在这个远程助手问题上遇到了很多问题。我确保我已经安装了所有的expat, curl等,但在发现4.4.4版本是duff后,最终通过更新gcc解决了这个问题。刚刚进行了yum更新,并使用4.4.6重新编译。

如果你试图克隆,那么你可以使用git传输

例如:git克隆git://github.com/fog/fog.git

Vaio ~/Myworks/Hero $ git clone git://github.com/fog/fog.git

Initialized empty Git repository in /home/nthillaiarasu/Myworks/Hero/fog/.git/
remote: Counting objects: 41138, done.
remote: Compressing objects: 100% (13176/13176), done.
remote: Total 41138 (delta 27218), reused 40493 (delta 26708)
Receiving objects: 100% (41138/41138), 5.22 MiB | 58 KiB/s, done.
Resolving deltas: 100% (27218/27218), done

我曾经来过这里,因为我正在处理git本身。当我构建它时,默认的makefile将二进制文件安装在~/bin/git中。因为我的路径有~/bin首先当我运行'git拉-rebase'时,它使用了~/bin中的一个,因此无法定位帮助程序。

我通过运行'/usr/bin/git…'带有完整的路径(或者我可以调整我的路径)。

工作

1-我必须删除git:

sudo apt-get remove git

2-重新安装后缀为-all的git:

sudo apt-get install git-all

如此处所教:https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

3-检查我的github帐户的所有设置(用户名和电子邮件)

顺便说一下,我弄错了那封好邮件,这是我错误的来源;) https://github.com/settings/profile 检查你的用户名 https://github.com/settings/emails 检查你的电子邮件是一个很好的方法

4-我在这里遵循了git的教程

https://help.github.com/articles/connecting-to-github-with-ssh

如果这个问题是在通过github命令行实用程序绑定到github时发生的,那么这个问题很可能是由于使用了gh的snap版本。

如果你可以用git clone克隆而没有得到这个错误,那么问题是gh的snap版本。

最后,github文档挽救了这一天! https://github.com/cli/cli/blob/trunk/docs/install_linux.md

以下是节省时间的步骤(debian/ubuntu/Raspberry PiOS):

curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh