In fact, it is very simple, just reconfigure the proxy
git config --global --unset http.proxy
git config --global --unset https.proxy
After the configuration is complete, you can use the following commands to view and modify the configuration of Git:
git config --global --edit