在使用push的命令

warning: push.default is unset; its implicit value has changed in

Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the traditional behavior, use:

git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

git config --global push.default simple

When push.default is set to 'matching', git will push local branches
to the remote branches that already exist with the same name.

Since Git 2.0, Git defaults to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Everything up-to-date
Since Git 2.0, Git defaults to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Everything up-to-date

原因是git2.0开始,push默认使用"simple"模式,而貌似github对于"simple"模式还不怎么支持。将push.default改为"matching"模式就好了。

要说解决的办法:其实也很简单;

使用命令

git push origin master

以上就解决的push出错的问题;

如果还没有解决,请私信或者底下评论大家一起探讨解决办法;

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. 亚马逊ses如何发qq_使用Amazon SES发送电子邮件
  2. Excel 2007 (Excel.Application) Workbooks.Add 出现内存不够的解决办法
  3. java 模拟时钟_java模拟时钟
  4. keystonejs富文本问题及思考过程
  5. nginx配合modsecurity实现WAF功能
  6. C语言中的位域 bit field [转]
  7. 数组中两个数的最大异或值 两数异或值一定小于两数相加和
  8. [css] CSS3中的transition是否可以过渡opacity和display?
  9. 动态规划进阶题目之滑雪
  10. 小白必须懂的MongoDB的十大总结
  11. python-描述符的操作
  12. console.log(iVal)是什么?显示在哪里?
  13. 前端技术栈---Vue(1)安装与初始化
  14. 吴恩达深度学习课程要点和概念记录一(神经网络及其优化)
  15. 对有效性的认识(卓有成效的管理者)
  16. 射频功率dbm-w换算表
  17. 外媒称百度AI领跑全球,一场“战疫”告诉你为什么
  18. 基于Nexus搭建maven私有源仓库
  19. Matlab将图像序列合成为视频
  20. python中日期格式和时间戳格式的转换

热门文章

  1. AE TypeMonkey
  2. 两种方法设置 .NET/C# 项目的编译顺序,而不影响项目之间的引用
  3. matlab景深合成算法,简单明了讲解景深合成
  4. 大田后生仔用计算机怎么弹奏,大田后生仔闽南语怎么唱?大田后生仔歌词谐音翻译...
  5. 2018省赛第九届蓝桥杯真题C语言B组第八题题解 日志统计
  6. 制作OpenCV相机标定板棋盘格图像
  7. YOLOv5的参数IOU与PR曲线,F1 score
  8. 5、♥☆基于STM32的智能手环√★☆
  9. 自制蹭网工具(全套-修改电脑MAC地址、IP、获取局域网内别人的MAC和IP)
  10. 解决C语言编译undefined reference to ‘pow’问题