zoukankan      html  css  js  c++  java
  • 解决git仓库项目 添加到github非空仓库冲突问题 error: failed to push some refs to 'https://github.com/Qtoken/......'

            error: failed to push some refs to 'https://github.com/Qtoken/......'

                1. 问题描述:执行命令:git push origin master    将git仓库项目 添加到github非空仓库报错

                     

                  2.返回内容:

                     error: failed to push some refs to 'https://github.com/Qtoken/......'

                     hint: Updates were rejected because the remote contains work that you do

                     hint: not have locally. This is usually caused by another repository pushing

                     hint: to the same ref. You may want to first integrate the remote changes

                     hint: (e.g., 'git pull ...') before pushing again.

                     hint: See the 'Note about fast-forwards' in 'git push --help' for details.

                  3.原因:  git仓库与远程连接的github库,内容不一致

                  4.解决方法:

                     4.1 执行 git pull --rebase origin master    将github仓库内容同步到git仓库

                     4.2 再执行git push origin master     此时git仓库项目正常 添加到github非空仓库

  • 相关阅读:
    spring
    google-c-style
    process想停就停,真爽
    mytop
    Java 图片设置圆角(设置边框,旁白)
    当setTimeout遇到闭包
    FreeMarker辅助
    ImageIO.wtrie生成jpg图片质量损失方案:BufferedImage生成jpg图片文件流
    从BufferedImage到InputStream,实现绘图后进行下载(生成二维码图片并下载)
    使用Javascript 实现类
  • 原文地址:https://www.cnblogs.com/Qtoken/p/12887544.html
Copyright © 2011-2022 走看看