git push出现 ! [rejected] master - master (non-fast-forward)error failed to push some refs to

git push出现 ! [rejected] master -> master (non-fast-forward)error: failed to push some refs to

错误提示

 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://gitee.com/xys/gittest.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

解决办法

git push -f origin master      //强制覆盖
上一篇:数字后端 - STA


下一篇:git 第一次上传本地代码到远程仓库,解决 ! [rejected] master -> master (non-fast-forward)错误