git pull fails with “Either the application has not called WSAStartup, or WSAStartup failed”

别来无恙 提交于 2019-11-29 09:24:47

For those who can't edit the URL, downgrading git to the previous version appears to work.

This seems to be an issue with git version 2.19.2.windows.1

A low-tech workaround is to replace git:// with https:// in the URL.
The command then goes smoothly.

Warnings:

  • It only works read-only, so if you might want to push to the repository any time in the future then use PhillyAI's solution instead.
  • Please note that while it currently works with GitHub, this trick might not work with other Git servers.

It is a known bug in earlier versions of Git for Windows.

Upgrade/Install version greater than 2.20.0.

You can check currently installed version with command $ git --version

kcomain

I found out there is one more solution, which is to navigate to the .git folder, changing the

[remote "origin"]
        url = git://github.com/yourUsername/yourRepo.git

to

[remote "origin"]
        url = https://github.com/yourUsername/yourRepo.git

fixes the problem if one does not want to downgrade the git client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!