【发布时间】:2021-05-21 02:09:56
【问题描述】:
尝试使用规范的git 访问 git-bash 准备好的 git repo,我得到了:
$ git pull
fatal: Unsupported SSL backend 'schannel'. Supported SSL backends:
gnutls
按照Using Git Bash under WSL,我已经完成git config http.sslBackend openssl:
$ git config http.sslBackend
openssl
$ git config --global http.sslBackend
openssl
按照提示from reddit,我已经完成了:
sudo apt install -y gnutls-bin
# and here are my installed packages:
ii gnutls-bin amd64 GNU TLS library - commandline utilities
ii libcurl3-gnutls:amd64 amd64 easy-to-use client-side URL transfer library (GnuTLS flavour)
ii libgnutls-dane0:amd64 amd64 GNU TLS library - DANE security support
ii libgnutls30:amd64 amd64 GNU TLS library - main runtime library
我还缺少什么?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
在 Windows WSL 中运行。
附言。经过以上所有调整,git-bash 仍然可以 pull 这个 git repo 就好了,所以我猜 SSL backend 'schannel' 是在这个 repo 的其他地方配置的。
PPS。发现它与 "git-bashprepared git repo" 无关,因为即使克隆一个新的也会给我完全相同的错误。
这是我的git config --show-origin -l 输出,如果我需要包含更多内容,请告诉我:
$ git config --show-origin -l | grep -E 'ssl|http'
file:/home/me/.gitconfig http.sslbackend=openssl
file:.git/config http.sslverify=false
file:.git/config http.sslbackend=openssl
file:.git/config http.emptyauth=true
file:.git/config remote.origin.url=http://xxx:8080/tfs/DefaultCollection/xxx
file:.git/config lfs.http://xxx:8080/tfs/DefaultCollection/xxx/info/lfs.access=ntlm
【问题讨论】:
-
您能否编辑您的问题以包含
git config --show-origin -l的输出? -
我们正在寻找与
http.sslBackend相关的任何内容。
标签: git configuration windows-subsystem-for-linux