Windows Git Clone可用于CMD,但不能用于PowerShell
我可以使用cmd.exe毫无问题地克隆特定的存储库,但使用PowerShell会失败Windows Git Clone可用于CMD,但不能用于PowerShell,windows,git,powershell,cmd,Windows,Git,Powershell,Cmd,我可以使用cmd.exe毫无问题地克隆特定的存储库,但使用PowerShell会失败 Git版本:2.27.0.windows.1 所需的证书已添加到git install dir\mingw64\ssl\certs\ca-bundle.crt PowerShell错误 PS D:\git> git clone https://foo/bar.git Cloning into 'foobar'... remote: Enumerating objects: 1352, done. re
- Git版本:2.27.0.windows.1
- 所需的证书已添加到git install dir\mingw64\ssl\certs\ca-bundle.crt
PS D:\git> git clone https://foo/bar.git
Cloning into 'foobar'...
remote: Enumerating objects: 1352, done.
remote: Counting objects: 100% (1352/1352), done.
remote: Compressing objects: 100% (1016/1016), done.
error: RPC failed; curl 56 Malformed encoding found in chunked-encoding
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
my.gitconfig中的代码片段
在谷歌搜索该问题后,我已经添加了以下属性:
file:C:/users/doej1/.gitconfig core.longpaths=true
file:C:/users/doej1/.gitconfig core.autocrlf=true
file:C:/users/doej1/.gitconfig http.postbuffer=524288000
为什么它可以与cmd.exe一起工作,而不能与PowerShell一起工作?你确定PowerShell和cmd使用相同的Git版本,使用相同的.gitconfig吗?@Lorenzo Isidori:我想是的:“Git config--list--show origin--show scope”和“Git--version”命令在cmd和PowerShell中运行时会产生相同的结果/输出