栗染-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

原文地址:https://www.cnblogs.com/kuangqiu/p/7679237.html