Tôi chỉ cần cài đặt git cho các cửa sổ và cố gắng sao chép repo glew của như thế nàyCách giải quyết chứng chỉ SSL: chứng chỉ tự ký khi nhân bản repo từ github?
$ git clone https://github.com/nigels-com/glew.git
Nhưng tôi đã nhận lỗi sau
Cloning into 'glew'...
fatal: unable to access 'https://github.com/nigels-com/glew.git/': SSL certificate problem: self signed certificate
Tôi đã nhìn thấy mọi người chạy vào vấn đề này và một số cách giải quyết tốt.
Trước tiên hãy thử
$ git -c http.sslVerify=false clone https://github.com/nigels-com/glew.git
Cloning into 'glew'...
fatal: unable to access 'https://github.com/nigels-com/glew.git/': Empty reply from server
Second thử
$ git config --global http.sslVerify false
$ git clone https://github.com/nigels-com/glew.git
Cloning into 'glew'...
fatal: unable to access 'https://github.com/nigels-com/glew.git/': Empty reply from server
Sau đó, tôi đã kiểm tra cho http.sslcainfo
mục trong tập tin cấu hình
$ git config --system --list
credential.helper=manager
$ git config --global --list
https.proxy=<proxy-address>
http.sslverify=false
hệ thống và các tập tin cấu hình toàn cầu không có entry đó. Vì vậy, tôi đã thử những điều sau đây mà tôi không biết những gì tập tin được đọc và cố gắng bỏ đặt nó.
$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
credential.helper=manager
http.sslverify=false
$ git config --unset http.sslcainfo
fatal: not in a git directory
Cố gắng với toàn cầu và hệ thống
$ git config --global --unset http.sslcainfo
$ git clone https://github.com/nigels-com/glew.git
Cloning into 'glew'...
fatal: unable to access 'https://github.com/nigels-com/glew.git/': SSL certificate problem: self signed certificate
$ git config --system --unset http.sslcainfo
error: could not lock config file C:\Program Files\Git\mingw64/etc/gitconfig: Permission denied
error: could not lock config file C:\Program Files\Git\mingw64/etc/gitconfig: Invalid argument
tôi vẫn không thể sao chép rằng github repo. Bất kỳ ý tưởng nào khác tôi có thể cố gắng khắc phục vấn đề này? Tôi đang thiếu gì?
Dường như vấn đề về proxy. – Roman
Đã đặt proxy vào git, nhưng vẫn không thể sao chép từ git. Bạn có ý tưởng nào khác không? – BRabbit27
Lần đầu tiên bạn làm việc cho tôi. Cảm ơn! –