其他分享
首页 > 其他分享> > 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

作者:互联网

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      //强制覆盖

标签:non,git,hint,fast,master,rejected,push
来源: https://blog.csdn.net/weixin_43612925/article/details/120268834