Github : 개인 저장소 복제 오류 복제하려고하는데 오류와 함께 실패합니다. $ git

https-URL을 사용하여 GitHub 프로젝트를 복제하려고하는데 오류와 함께 실패합니다.

$ git clone https://foo@github.com/foo/foo-private.git
Cloning into foo-private...
Password:
error: error setting certificate verify locations:
  CAfile: /bin/curl-ca-bundle.crt
  CApath: none
 while accessing https://foo@github.com/foo/foo-private.git/info/refs

fatal: HTTP request failed

내가 뭘 잘못하고 있죠?



답변

Windows에서 msysgit 1.7.2.3과 함께 이것을 보았습니다. bin / curl-ca-bundle.crt 의 경로를 수정해야합니다 . 백 슬래시를 사용하여 절대 경로를 지정해야했습니다.

git config --system http.sslcainfo "C : \ Program Files (x86) \ git \ bin \ curl-ca-bundle.crt"

또는 권장하지는 않지만 다음을 실행하여 SSL 검사를 완전히 해제 할 수 있습니다.

자식 설정 --system http.sslverify false

두 경우 모두 [git-install-dir] / etc / gitconfig 파일이 변경되어 직접 편집 될 수 있습니다.

(원래 솔루션은 http://github.com/blog/642-smart-http-support에 있습니다 )


답변

https://git-for-windows.github.io/ 에서 Git 설치 문제를 해결했습니다
. 인증서 파일 경로를 찾으십시오.

D : \ Program Files \ Git \ mingw64 \ ssl \ certs \ ca-bundle.crt

힘내 경로를 구성하십시오 :

git config –system http.sslcainfo “D : \ Program Files \ Git \ mingw64 \ ssl \ certs \ ca-bundle.crt”

다시 시도하십시오


답변

MSYS2를 사용하는 경우 …

다음 명령으로 인증서 패키지를 설치하십시오.

32 비트

pacman -S mingw-w64-i686-ca-certificates ca-certificates

64 비트

pacman -S mingw-w64-x86_64-ca-certificates ca-certificates


답변

Cygwin을 사용하는 경우 apt-cyg 와 함께 ca-certificates 패키지를
설치할 수 있습니다 .

wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /usr/local/bin
apt-cyg install ca-certificates

명령 행에서 cygwin 패키지를 어떻게 설치합니까?


답변

git config --global http.sslverify "false"

문제를 해결할 것입니다. 그 후 팝업 창이 나타나 사용자 이름과 비밀번호를 입력합니다


답변

해결 : Git windows 설치 프로그램에 업데이트를 설치할 때이 오류가 발생했습니다. 관리자 권한으로 설치하지 않았으므로 Git은 “C : \ program Files”대신 “C : \ Users \ my_name \ AppData \ Local \ Programs”에 설치되었습니다. 관리자로서 Git을 다시 설치하면 C : \ program Files에 넣을 수 있었고 모든 것이 다시 정상적으로 진행되었습니다!


답변

이것은 나를 위해 일했습니다 (Manjaro Linux를 사용하고 있습니다). cmd를 실행하여 ca 인증서를 봅니다.

$ curl-config --ca
**/etc/ssl/certs/ca-certificates.crt**

그러나 실제로 경로에서 인증서를 찾았습니다.

**/etc/ca-certificates/extracted/ca-bundle.trust.crt**

그런 다음 ~ / .gitconfig에 구성을 추가하십시오 (존재하지 않는 경우 작성).

**vim ~/.gitconfig**
[http]
    sslVerify = true
    sslCAinfo = /etc/ca-certificates/extracted/ca-bundle.trust.crt

[user]
    email = <email of github account>
    name = <username of github account>

효과가있다!

.rbenv]$ git pull

remote: Counting objects: 70, done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 70 (delta 39), reused 12 (delta 12), pack-reused 6
Unpacking objects: 100% (70/70), done.
From https://github.com/sstephenson/rbenv
   c43928a..efb187f  master     -> origin/master
 + 37ec781...7e57b52 user-gems  -> origin/user-gems  (forced update)
Updating c43928a..efb187f
Fast-forward
 libexec/rbenv-init         |  4 ++--
 libexec/rbenv-version-file |  1 +
 test/init.bats             |  2 +-
 test/test_helper.bash      | 25 +++++++++++++++----------
 4 files changed, 19 insertions(+), 13 deletions(-)