Problem: gitpush encountered the following error:
ssh_dispatch_run_fatal: Connection to 18.104.22.168 port 22: Software caused connection abort fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Cause: DNS resolution problem
Open CMD and enter ping command to view github.com Connection, request timeout:
Solution: configure the local hosts file
Add the following text at the end and save it
22.214.171.124 github.com git 126.96.36.199 github.global.ssl.fastly.net
Results: it was successfully solved
Ping again github.com , Ping successfully.
Push again, success.