栗染-github中搭建博客遇到的问题之一

运行命令:git push -u origin master

To https://github.com/xuzhezhaozhao/Practice.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/xuzhezhaozhao/Practice.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.

 

解决办法:

输入命令:git push --force

 

posted @ 2017-10-16 22:26  栗染  阅读(151)  评论(0编辑  收藏  举报