解决Updates were rejected because the tip of your current branch is behind its remote counterpart问题
Git错误提示Integrate the remote changes…的解决方法
Git在push推送时,报错提示信息如下:
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.
原因分析:
是由于本地和远程仓库两者代码文件不同步,因此需要先pull,进行合并然后再进行push
解决方法:
1、先使用pull命令:文章来源:https://www.toymoban.com/news/detail-785394.html
git pull --rebase origin master
2、再使用push命令:文章来源地址https://www.toymoban.com/news/detail-785394.html
git push -u origin master
到了这里,关于Updates were rejected because the tip of your current branch is behind的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!