git clone ãããã¨ããã HTTP request failed ã¨æãããã¨ãã®è§£æ±ºæ¹æ³
CentOSã®VPSã§git cloneãããã¨ããããã¨ã©ã¼ã«ãªã£ãã
# git clone https://hoge.backlog.com/git/HOGE/hoge.git hoge Initialized empty Git repository in /tmp/hoge/.git/ error: The requested URL returned error: 401 Unauthorized while accessing https://hoge.backlog.com/git/HOGE/hoge.git/info/refs fatal: HTTP request failed
ããããããã£ã¦å¯¾çãã¦ã¿ããã©è§£æ±ºã§ããã
git ã®ãã¼ã¸ã§ã³ãå¤ãã®ãåå ã½ããã¨ãããã£ãã
ãã¡ããåèã«ã㦠git ãã¢ãããã¼ãã
â« CentOS6ã§ã®gitã¢ãããã¼ãï¼1.7â2.16ï¼
æ¢ågitã®ã¢ã³ã¤ã³ã¹ãã¼ã«
# git remove git
git2ç³»ãã¤ã³ã¹ãã¼ã«ã§ããrpmãå ¥ãã
# wget --no-check-certificate https://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-15.ius.centos6.noarch.rpm # rpm -Uvh ius-release-1.0-15.ius.centos6.noarch.rpm
git2uãã¤ã³ã¹ãã¼ã«ãã
# yum install git2u --enablerepo=ius Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist https://mirrors.iuscommunity.org/mirrorlist?repo=ius-centos6&arch=x86_64&protocol=http error was 14: Peer cert cannot be verified or peer cert invalid Error: Cannot find a valid baseurl for repo: ius
ã¨ã©ã¼ã«ãªã£ãããã
åç
§ãããµã¤ãã§ãä¼¼ããããªã¨ã©ã¼ã§ã対çãæ¸ãã¦ãã£ãã
/etc/yum.conf ã«ã以ä¸ã®1è¡ã追å ããã
sslverify=false
ãªãã©ã¤ãããæåã
>|| # yum install git2u --enablerepo=ius ï¼ç¥ï¼ Installed: git2u.x86_64 0:2.16.5-1.ius.centos6 Dependency Installed: git2u-core.x86_64 0:2.16.5-1.ius.centos6 git2u-core-doc.noarch 0:2.16.5-1.ius.centos6 git2u-perl-Git.noarch 0:2.16.5-1.ius.centos6 Complete!
git clone ãã¦ã¿ãã
# git clone https://hoge.backlog.com/git/HOGE/hoge.git hoge Cloning into 'hoge... Username for ... Password for ...
clone ã§ããï¼