I am not able to clone a Github repo from Visual Studio Code. I get the error below:
fatal: read error: Invalid argument
fatal: expected flush after ref listing
Everything was working fine until I reinstalled VSC and Node.js (all software) after a machine reset.
Also, the cloning works if I run the command from a terminal window (outside of VSC) so it is not an auth or a repo issue.
I have tried many many suggestions from multiple relevant forums but to no avail. I do not have a thorough understanding of github commands so cannot explain much more about what I did.
The VSC version details if it helps. And I have Node.js 20.x installed.
VSC Version Info
Everything was working seamlessly earlier (cloning, committing, and syncing) so I expected it would continue to work after the reinstall.
Vikas Mujumdar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Did you check clone by CMD or Terminal of OS?