Updates were rejected because the tip of your current branch is behind

原因是本地版本不如远程版本新,所以报错
解决办法就是
push前先将远程repository修改pull下来

# 先把远程最新的仓库下载下来,防止冲突
$ git pull origin main
# 修改一个文件
$ vim README.md
# 重新提交
$ git add .
$ git commit -m "eee"
# 重新推送到远程仓库的main分支下,此时推送成功
$ git push origin main
Enumerating objects: 5, done.

git push报错相关推荐

  1. git push 报错Push rejected、 remote unpack failed 、unpacker error、 failed to push some refs to

    git push 报错Push rejected. remote unpack failed .unpacker error. failed to push some refs to 1.error: ...

  2. git push报错:fatal: unable to access ‘https://XXXX.git/‘: Peer‘s Certificate issuer is not recognized.

    推镜像的时候,git push报错:fatal: unable to access 'https://XXXX.git/': Peer's Certificate issuer is not reco ...

  3. git push 报错 Empty reply from server 或 Failed to connect to github.com port 443: Time out

    git push 报错 Empty reply from server 或 Failed to connect to github.com port 443: Time out 问题出现 报错信息 问 ...

  4. git push 报错 ---error: commit 8aa8e31: email address yin.jiaqing@.....com is not registered in your

    git push 报错: error: commit 8aa8e31: email address yin.jiaqing@haustart.com is not registered in your ...

  5. git push报错 DENIED by fallthru(or you mis-spelled reponame)

    git push报错 DENIED by fallthru(or you mis-spelled reponame) 百度半天都说是公钥私钥问题 最后发现是管理员没开push权限

  6. git push报错处理办法

    使用办法: git add . git commit -m "原因" git push 如果git push报错 执行: git push origin 本地分支名:远程分支名 例 ...

  7. git push报错:remote: error: refusing to update checked out branch: refs/heads/master

    远程仓库通过git init初始化了一个项目,没有clone到本地,本地新建了一个项目,关联本地项目和远程仓库(参见IDEA新建本地项目关联远程git仓库 )后git push报错: wulf@wul ...

  8. 码云git push报错 DeployKey does not support push code 解决办法

    码云git push报错 DeployKey does not support push code 解决办法 首先生成公钥去码云添加公钥有具体教程 添加公钥 一顿操作之后测试一下 git push 嗯 ...

  9. git push报错 ! [remote rejected] master -> master (push declined due to email privacy restrictions)

    使用push命令 将本地仓库push到github时 报错: git push https://github.com/lexsaints/taobao_spider.git master 报错信息如下 ...

  10. git push报错 emote: error: GH007

    报错信息: Pushing to https://github.com/***.git POST git-receive-pack (1288 bytes) remote: error: GH007: ...

最新文章

  1. PHP 调用C的代码
  2. KEIL5.11安装小结
  3. 如何向虚拟机服务器里传文件,怎么往虚拟机复制文件_如何向虚拟机传文件-win7之家...
  4. win7 64位下如何安装配置mysql-5.7.4-m14-winx64(安装记录)
  5. [SpringSecurity]web权限方案_用户授权_自定义403页面
  6. CentOS7 2.新项目上线脚本
  7. MySQL分页查询中该避开的坑
  8. mysql 读取oracle_RobotFramework读取mysql和oracle数据库
  9. 响应函数sys_xxx
  10. GotoAndPlay 图论
  11. tab切换中的滚动条下拉分页带来的问题
  12. 福利 | 国外最牛逼的一套 PPT 作品送给你
  13. bin文件用cad打开_bin文件怎么打开?实测可靠方法
  14. 采购入库单部分结算时是否自动暂估 参数 是的情况下
  15. Java 征途:行者的地图(推荐好文)
  16. java.util.zip.ZipException: invalid stored block lengths的错误
  17. 格兰杰因果 Granger causality
  18. 【live2d】博客看板娘live2d!
  19. 一些关于芯片烧录的心得
  20. 电脑运行速度慢的处理

热门文章

  1. 传统的BIOS启动过程与UEFI启动过程
  2. Smarty中直接加JS代码和将JS代码写在literal标签里
  3. Pow,Pos,Dpos共识机制比较
  4. python连接hive kerberos_数据库开发实战教程:使用Python连接Kerberos的Presto
  5. mysql 查询一个数据库里面有多少张数据表
  6. mysql join 性能测试_MySQL Looped Join如何测试结果是否完整?
  7. python批量转换数据类型_玩转python 各种数据类型的转换
  8. tkinter 中给某个文本加上滚动条_Python Tkinter自制文本编辑器
  9. php二级域名 同步登录,php网站单点登录--卷一(跨二级域名)
  10. 如何在电脑中使用python_教你怎么在windows上用python获得CPU信息