Upgrade from within China fails due to git issues

Thank you very much, I have checked several guides around this, but as the main cause of the issue is not the TLS authentication of Git per se, but the handshake check in the GFW’s package inspection processes, I abstained from this approach. Compiling git with openssl can open doors to a new world full of pain, as I had read.