dothebest0927 avatar

How to Git Error - HTTP Request Failed

dothebest0927

Published: 12 Jul 2019 › Updated: 12 Jul 2019

How to Git Error - HTTP Request Failed

실행 환경 : CentOS6.x [Redhat 64 bit]

  • git clone 시 repository URL 이 SSL(https) 일 경우 Fatal Error

    $ git clone https://git.afreecatv.com/server/Editer.git
    Initialized empty Git repository in /k3/afreeca/server/VodSystem/Git_Editer/Editer/.git/
    error: The requested URL returned error: 401 Unauthorized while accessing https://git.afreecatv.com/server/Editer.git/info/refs
    
    fatal: HTTP request failed
    
  • 원인 : git -version으로 gitlab이 지원하는 version인지 확인 (default : git 1.7.1)

  • 해결 방법
    : * Gitlab은 Git 1.8버전부터 지원, 최신 Git을 다음과 같이 설치

    $ git --version  (git version 1.7.1)
    $ rpm -Uvh http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
    $ yum --enablerepo=WANdisco-git --disablerepo=base,updates info git
    $ yum --enablerepo=WANdisco-git --disablerepo=base,updates install git
    $ git --version // 바뀐 Git, git version 2.22.0(2019-07-10)
    $ git clone https://.../.git //이후 로그인 인증 후 Clone 진행
    

Leave How to Git Error - HTTP Request Failed to:

Written by

Read more #gitlab posts


Best Posts From dothebest0927

We have not curated any of dothebest0927's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From dothebest0927