日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無(wú)先后,達(dá)者為師

網(wǎng)站首頁(yè) 編程語(yǔ)言 正文

error: failed to push some refs to ‘http://git.text.com:9988.git‘hint: Updates were rejected...

作者:咸魚都能看懂的代碼 更新時(shí)間: 2022-04-14 編程語(yǔ)言

To http://git.text.com:9988/text.git
?! [rejected] ? ? ? ?dev -> dev (non-fast-forward)
?! [rejected] ? ? ? ?feature.import_setting_view -> feature.import_setting_view (non-fast-forward)
error: failed to push some refs to 'http://git.text.com:9988.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時(shí)候,git自己選擇dev分支合并到dev分支,莫名其妙

方法一:打開(kāi)gitlab 網(wǎng)站,找到merge request里面自己提交的合并分支刪除,重新上傳,再次在git 命令里面git push就ok了

方法二:在git 命令窗口輸入git push 自己分支的路徑//比如origin feature_view

?如果還不行在上面命令基礎(chǔ)上,后面加個(gè)-f

問(wèn)題解決

原文鏈接:https://blog.csdn.net/qq_43644046/article/details/122696942

欄目分類
最近更新