git报错:error: failed to push some refs to ... 的解决办法

àì夳堔傛蜴生んèń 2023-10-10 09:38 175阅读 0赞

在push的时候,出现如下错误:
error: failed to push some refs to ‘ssh://git@git.shannonai.com:2222/inf/web-reader.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 —delete origin fea/dataset
然后再: git push -u origin fea/dataset

截图如下:
在这里插入图片描述
push成功!!!

发表评论

表情:
评论列表 (有 0 条评论,175人围观)

还没有评论,来说两句吧...

相关阅读