Common git problems included

List of common git problems


Preface

  • This article is used to collect common gitand githubproblems

Recommended reading

  • The Definitive Guide to Git

1. Cannot opengithub

  1. Open website IP query
  2. enterwww.github.com

Insert picture description here

  1. Open C:\Windows\System32\drivers\etcthe hostsfile, add at the end of the file52.74.223.119 www.github.com

Insert picture description here

  1. After opening the cmdinput ipconfig /flushdns, ping www.github.comget the data as shown below

Insert picture description here

  1. You can open github

2. The githubdownload speed is too slow

  1. Replace the domestic mirror source

For example, git clone github.com/xxxchange togit clone github.com.cnpmjs.org/xxx

  1. Change hostsofbuffer

git config --global http.postBuffer 524288000

  1. modifyhosts
    1. Open query domain name ip
    2. Find the corresponding domain nameip
    3. hostsAdd the corresponding in the file
151.101.72.249 github.global.ssl.fastly.net  
192.30.253.112 github.com

hostsFile location:

  • winC:\Windows\System32\drivers\etc\hosts
  • linux/etc/hosts
  1. Code Cloud as a transfer station, transfer files

Guess you like

Origin blog.csdn.net/u013362192/article/details/114242966