git连接github,出现Warning: Permanently added 'github.com,xx.xx.xxx.xxx' (RSA) to the list of known ho...

出现Warning: Permanently added 'github.com,xx.xx.xxx.xxx' (RSA) to the list of known hosts.问题时,对应的解决办法是找到系统的hosts文件,windows系统一般在C:\Windows\System32\drivers\etc下,打开在最后写上


在git连接远程github仓库时,报error: failed to push some refs to 'git@github.com:xxxxxx/xxxxxx.git'错,原因是在github里的README.md文件不存在于本地仓库,解决办法是

在git Bash里输入git pull --rebase origin master将远程仓库的README.md移到本地,

然后再次$ git push -u origin master就可以了。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容