欢迎光临
一起构建大模型应用开发知识金字塔

解决Windows安装Git到D盘后的几个问题

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>

赞(0) 打赏
未经允许不得转载:大模型应用开发者 » 解决Windows安装Git到D盘后的几个问题

相关推荐

  • 暂无文章

评论 抢沙发

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

登录

找回密码

注册