Error: error: failed to push some refs to 'https://github.com/pzq7025/KG.git' solution

One of the problems
during the [git push orgin master] when there are mistakes

 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/pzq7025/KG.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.


Second, the solution
This error is due to the lower current version and the version submitted, so use [git push origin master -f] can solve this problem.

Third, the results show

 

Fourth, the reference
https://blog.csdn.net/crazydony/article/details/51983343

Guess you like

Origin www.cnblogs.com/future-dream/p/11080229.html