github登陆不上去的问题解决办法
更改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 (忽略版本不同造成的影响)