List of common git problems
Article Directory
Preface
- This article is used to collect common
git
andgithub
problems
Recommended reading
- The Definitive Guide to Git
1. Cannot opengithub
- Open website IP query
- enter
www.github.com
- Open
C:\Windows\System32\drivers\etc
thehosts
file, add at the end of the file52.74.223.119 www.github.com
- After opening the
cmd
inputipconfig /flushdns
,ping www.github.com
get the data as shown below
- You can open github
2. The github
download speed is too slow
- Replace the domestic mirror source
For example, git clone github.com/xxx
change togit clone github.com.cnpmjs.org/xxx
- Change
hosts
ofbuffer
git config --global http.postBuffer 524288000
- modify
hosts
- Open query domain name ip
- Find the corresponding domain name
ip
hosts
Add the corresponding in the file
151.101.72.249 github.global.ssl.fastly.net
192.30.253.112 github.com
hosts
File location:
win
:C:\Windows\System32\drivers\etc\hosts
linux
:/etc/hosts
- Code Cloud as a transfer station, transfer files