一、git push到gitlab提示,大概意思是本地库和远程库没有同步导致无法提交合并,冲突导致无法push。
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@172.16.1.13:Software/xxxxxxxxxxxxxxxxxx.git'
hint: Updates were rejected because the tip of your current branch is behind
二、解决方案
git branch --set-upstream-to=origin/master
git pull origin master --allow-unrelated-histories 从远端仓库拉取不相关历史
三、操作界面,可以push到gitlab了。
三、參考文章文章来源:https://www.toymoban.com/news/detail-740049.html
https://www.cnblogs.com/wml-it/p/15585052.html文章来源地址https://www.toymoban.com/news/detail-740049.html
到了这里,关于git push 到gitlib提示! [rejected] master -> master (non-fast-forward) error: failed to push some refs t的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!