赞
踩
一、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了。
三、參考文章
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。