When I run git update-git-for-windows command on my command prompt, it gives the following error:
git update-git-for-windows
Git for Windows 2.45.2.windows.1 (64-bit)
Update 2.47.0.windows.2 is available
curl: (43) A libcurl function was given a bad argument
I even tried running the command prompt as administrator but it gave the same error output.
This is an issue with curl in this specific Git release.
You have to update to a newer version manually:
https://github.com/curl/curl/issues/13845#issuecomment-2453436283
I had the same issue with version 8.8.0 which was part of a Git client version. Updating to a newer Git client version installed a newer curl version 8.10.1 which does not have the issue. The problem was in combination with
-wandhttps://in my case.http://targets worked. And this sounds like the issue referenced already in this thread with a fix in 8.9.0. The solution is to update to a later Git client in my case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With