更改hosts文件
文件末尾追加下面兩行:
*.*.*.* github.com
*.*.*.* github.global.ssl.fastly.net
具體值可以從這里獲取
github.com --> https://github.com.ipaddress.com/中找
github.global.ssl.fastly.net --> https://fastly.net.ipaddress.com/github.global.ssl.fastly.net中找
fatal: 拒絕合並無關的歷史
1.首先將遠程倉庫和本地倉庫關聯起來:
git branch --set-upstream-to=origin/master master
2.然后使用git pull整合遠程倉庫和本地倉庫,
git pull --allow-unrelated-histories (忽略版本不同造成的影響)