github+hexo搭建博客,push本地代码到github出错
在git客户端上传的时候一直报错,显示无法上传到github 报错信息如下 $ git push -u origin master To git@github.com:**/Demo.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to ‘git@github.com:**/Demo.git’ hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Merge the remote changes (e.g. ‘git pull’) hint: before pushing again. hint: See the ‘Note about fast-forwards’ in ‘git push –help’ for details. 解决方法(问度娘的,因为自己是刚搭建的,所以选择了第一种,强制push,若是你已经搭建好的博客,还是选择其他几种方法——>第一种最省事,最快) 原因:远程repository和我本地的repository冲突导致的,而在创建版本库后