[Linux]Centos git报错fatal: HTTP request failed

  1. 在使用git pull、git push、git clone会报类似例如以下的错误:

    error: The requested URL returned error: 401 Unauthorized while accessing https://git.oschina.net/zemo/demo.git/info/refs
    
    fatal: HTTP request failed

    通常是因为git版本号的问题。

    使用例如以下指令查看版本号:

    # git --version
    git version 1.7.0.1

    能够通过安装更高的版本号解决这个问题。

    眼下git最高版本号应该是2.0.0.1了

  2. fatal: Unable to find remote helper for ‘https‘

报错如上。

是由于git 是通过curl请求网络的。

细致检查发现

<span style="font-family: Arial, Helvetica, sans-serif;">checking for curl_global_init in -lcurl... no</span>

安装curl及curl-devel

yum install curl curl-devel

然后又一次

#./configure
#make
#make install

时间: 2024-12-20 01:19:46

[Linux]Centos git报错fatal: HTTP request failed的相关文章

win10 git 报错 Host key verification failed

从code.aliyun.com切回github 原先的known_hosts里记录的是code.aliyun.com的ip,必须新加一个github的. known_hosts报错Host key verification failed. powershell用多了,stackoverflow上的解决办法一个都没用. 切记,win10必须在git bash下运行下面的命令,cmd powershell里面运行都不管用. ssh -T [email protected] 选择yes 添加信任.

开发错误记录11:git报错?fatal:open?/dev/null?or?dup?failed:?No?such?file?or?directory

今天在自己的的电脑上装了git,没成想运行报错: 重装了几次git ,都不行,电脑上没有装github桌面版; 后来在网上查到了方法,反映这是系统的问题: null是比较特殊的系统文件,它实际上是为操作系统提供一个虚拟设备,这个搜索设备的驱动程序是C:WINDOWS\system32\drivers\Null.sys 解决方案: 以win7为例,右键点击计算机-管理-查看,勾选显示隐藏的设备:  启动null驱动,如下图: 发现启动不上,查看是否有驱动文件存在: C:WINDOWS\system

解决git报错:error: RPC failed; curl 18 transfer closed with outstanding read data remaining 的方法

报错信息: error: RPC failed; curl 18 transfer closed with outstanding read data remainingfatal: the remote end hung up unexpectedlyfatal: early EOFfatal: index-pack failed 解决方法一:网上大部分解决措施:命令终端输入如下命令,但是一般并不好使, git config --global http.postBuffer 524288000

git报错 fatal:open /dev/null or dup failed: No such file or directory

今天突然发现git无法做任何操作了,报了上面的错,各种百度谷歌都没有得到解决的方案.我重装了git,重启电脑仍然没有解决,开来不是git软件的问题而是系统问题. null是比较特殊的系统文件,它实际上是为操作系统提供一个虚拟设备,这个搜索设备的驱动程序是C:WINDOWS\system32\drivers\null.sys 解决方案: 以win7为例,右键点击计算机-管理-查看,勾选显示隐藏的设备: 点击非即插即用驱动程序 右键点击Null-属性-驱动程序-如果已经启动则点击停止,再点击启动,类

【Git笔记】git报错 fatal: The remote end hung up unexpectedly

git提交报异常,fatal: The remote end hung up unexpectedly 上网找了一下原因,最后这个答案帮了我解决问题了. 1 git config http.postBuffer 524288000 我的问题估计是上传文件太大导致的. 参考原文:http://www.myexception.cn/mobile/1576333.html

git报错:Auto Merge Failed; Fix Conflicts and Then Commit

本文来源:http://blog.csdn.net/trochiluses/article/details/101007191.出错场景: 协同开发时,我们从远程服务器上pull下代码的时候,出现以下提示信息: Auto Merge Failed; Fix Conflicts and Then Commit the Result. 2.原因分析: 利用git status,输出如下: [email protected]:/etc# git status# On branch master# Yo

git clone 报错:fatal: HTTP request failed

git clone https://github.com/xxxx/lilxxy.git Initialized empty Git repository in /tmp/clone123/lxyily/.git/ error: while accessing https://github.com/xxxx/lxyily.git/info/refs fatal: HTTP request failed 这个报错的原因可以能是:1.服务器时间问题2.git 版本问题3.curl版本问题对于3,因为

git报错:&#39;fatal:remote origin already exists&#39;怎么处理?附上git常用操作以及说明。

git添加远程库的时候有可能出现如下的错误, 怎么解决? 只要两步: 1.先删除 $ git remote rm origin 2.再次执行添加就可以了. ----------------------------------------------git常用操作------------------------------------------------ 说明,以下整理来自廖雪峰大神的<git教程>. 各位童鞋要下载git但是网速不给力的,可以从这里下载:https://pan.baidu.

git报错:&#39;fatal:remote origin already exists

git报错:'fatal:remote origin already exists'怎么处理?附上git常用操作以及说明. git添加远程库的时候有可能出现如下的错误, 怎么解决? 只要两步: 1.先删除 1 $ git remote rm origin 2.再次执行添加就可以了. ----------------------------------------------git常用操作------------------------------------------------ 说明,以下整