1. Log in https://www.ipaddress.com
to check the latest address.
2. /etc/hosts
Add to
For example, what I currently find is
185.199.110.133 raw.githubusercontent.com
140.82.112.4 github.com
Re-opening git works just fine.
Note that the following ip that is often found on the Internet has expired
192.30.253.112 github.com
Supplement: For Windows systems, the above may not work yet. You need to download C:\Windows\System32\drivers\etc
the hosts file and make the above changes to solve it. 【I am in this situation】