git报错:error: failed to push some refs to ... 的解决办法
在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成功!!!
还没有评论,来说两句吧...