Hi@akhtar,
This can be caused in incorrect proxy settings , or error typing name, make sure you're using the exact URL of whatever you're trying to do.
Try these commands.
git config --global --unset http.proxy
Also set user- name and user-email.
git config --global user.name "user name"
git config --global user.email "user email"
Hope this will solve your error.