When I executed the git clone command, I got the the following error.
Error: RPC failed; HTTP 302 curl 22 The requested URL returned error: 302
The error always happened in case of Ubuntu 18.04 or 20.04, but The error didn't happen in case of Ubuntu 16.04.
I don't know the difference Ubuntu 16.04 and 18.04/20.04.
Could you please give me some advice me?
git config --global http.followRedirects true
I got the solution from: https://blog.csdn.net/weixin_46027808/article/details/133032114
To summarize the solution, the 302 error means that the resource has been temporarily moved to a new location. The server will give a new URL, and the client is expected to make a request again to the new URL.
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