我无法克隆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传输
例如: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时没有安装(lib)curl-devel会导致这种情况。
如果你安装(lib)curl-devel,然后重新构建/安装git,这应该可以解决问题:
$ yum install curl-devel
$ # cd to wherever the source for git is
$ cd /usr/local/src/git-1.7.9
$ ./configure
$ make
$ make install
这在Centos 6.3上很适用。
如果你没有yum,你可以在这里下载源代码来curl-devel:
http://curl.se/dlwiz/?type=devel
如果你运行的是Ubuntu:
sudo apt-get install libcurl4-openssl-dev
我不得不添加了几个额外的安装,运行CentOS 5.10版本(Final):
yum install openssl097a.x86_64
yum install openssl-perl.x86_64
使用git-1.8.5:
. / configure
使清洁
使
制作安装
git clone https://github.com/michaelficarra/CoffeeScriptRedux.git
Cloning into 'CoffeeScriptRedux'...
remote: Reusing existing pack: 4577, done.
remote: Counting objects: 24, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 4601 (delta 13), reused 11 (delta 1)
Receiving objects: 100% (4601/4601), 2.60 MiB | 126.00 KiB/s, done.
Resolving deltas: 100% (2654/2654), done.
Checking connectivity... done.
在Mac OS X 10.9 Mavericks上,工作的解决方案如下
rvm pkg install openssl
CC=/usr/local/bin/gcc-4.2 CPP=/usr/local/bin/cpp-4.2 CXX=/usr/local/bin/g++-4.2 rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr
这是在OpenSSL支持下编译Ruby。接下来,卸载所有旧版本。
brew uninstall openssl
brew uninstall curl
brew uninstall git
接下来,安装更新的版本。git安装依赖于CURL的更新版本。
brew install openssl
brew install curl
brew install git
我有完全相同的问题,它归结为一个未满足的依赖,然而,我尝试了公认的答案的解决方案,它没有工作。
最后对我有用的是安装以下所有软件(这是RedHat):
sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
之后,我运行了其他命令,它工作:
./configure
make
sudo make prefix=/usr/local install
我直接从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
CentOS Minimal通常通过yum install git命令安装1.8版git。
最好的方法是从源代码构建和安装它。当前版本为2.18.0。
Download the source code from https://mirrors.edge.kernel.org/pub/software/scm/git/
or curl -o git-2.18.0.tar.gz https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.18.0.tar.gz
Unzip by tar -zxf git-2.18.0.tar.gz && cd git-2.18.0
Install the dependency package by executing yum install autoconf curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel asciidoc xmlto openjade perl* texinfo
Install docbook2X, it's not in the rpm repository. Download and install by
$ curl -o docbook2X-0.8.8-17.el7.x86_64.rpm http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/d/docbook2X-0.8.8-17.el7.x86_64.rpm
$ rpm -Uvh docbook2X-0.8.8-17.el7.x86_64.rpm
并创建一个unix链接名:
ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi
编译和安装,参考https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
$ make configure
$ ./configure——prefix=/usr
$ make所有的文档信息
make install install-doc install-html install-info
重新启动服务器(如果没有,您可能会遇到无法找到“https”的远程帮助错误)
$ reboot
测试:
$ git克隆https://github.com/volnet/v-labs.git
$ CD v-labs
$ touch test.txt
$ git添加。
$ git commit -m test git install
$ git push -u
这是2020年发现的
解决方案解决了OMZ的问题
https://stackoverflow.com/a/13018777/13222154
...
➜ ~ cd $ZSH
➜ .oh-my-zsh (master) ✗ git remote -v
origin https://github.com/ohmyzsh/ohmyzsh.git (fetch)
origin https://github.com/ohmyzsh/ohmyzsh.git (push)
➜ .oh-my-zsh (master) ✗ date ; omz update
Wed Sep 30 16:16:31 CDT 2020
Updating Oh My Zsh
fatal: Unable to find remote helper for 'https'
There was an error updating. Try again later?
omz::update: restarting the zsh session...
...
ln "$execdir/git-remote-http" "$execdir/$p" 2>/dev/null || \
ln -s "git-remote-http" "$execdir/$p" 2>/dev/null || \
cp "$execdir/git-remote-http" "$execdir/$p" || exit; \
done && \
./check_bindir "z$bindir" "z$execdir" "$bindir/git-add"
➜ git-2.9.5
➜ git-2.9.5
➜ git-2.9.5
➜ git-2.9.5 omz update
Updating Oh My Zsh
remote: Enumerating objects: 296, done.
remote: Counting objects: 100% (296/296), done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 221 (delta 146), reused 179 (delta 105), pack-reused 0
Receiving objects: 100% (221/221), 42.89 KiB | 0 bytes/s, done.
Resolving deltas: 100% (146/146), completed with 52 local objects.
From https://github.com/ohmyzsh/ohmyzsh
* branch master -> FETCH_HEAD
7deda85..f776af2 master -> origin/master
Created autostash: 273f6e9
如果这个问题是在通过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