Windows安装Git到D盘后,我遇到的问题:
1. PowerShell终端输入git,出现错误,表明找不到此命令。
解决方法:系统环境变量Path增加Git的bin目录,我的是 D:\Program Files\Git\bin。
安装Git后,系统环境变量Path已经存在D:\Program Files\Git\cmd,不知为何不行。
2. 使用Git下载Dify时出现错误如下:
fatal: unable to access ‘https://github.com/langgenius/dify.git/’: schannel: failed to receive handshake, SSL/TLS connection failed
解决方法:
git config –global –unset credential.helper
git config –system –unset credential.helper
图示:
PS F:\AI\dify> git clone https://github.com/langgenius/dify.git
Cloning into 'dify'...
fatal: unable to access 'https://github.com/langgenius/dify.git/': schannel: failed to receive handshake, SSL/TLS connection failed
PS F:\AI\dify> git config --global --unset credential.helper
PS F:\AI\dify> git config --system --unset credential.helper
PS F:\AI\dify>
PS F:\AI\dify> git clone https://github.com/langgenius/dify.git
Cloning into 'dify'...
remote: Enumerating objects: 144274, done.
remote: Counting objects: 100% (766/766), done.
remote: Compressing objects: 100% (355/355), done.
remote: Total 144274 (delta 633), reused 411 (delta 411), pack-reused 143508 (from 3)
Receiving objects: 100% (144274/144274), 77.88 MiB | 10.01 MiB/s, done.
Resolving deltas: 100% (105694/105694), done.
Updating files: 100% (5229/5229), done.
PS F:\AI\dify>
最新评论