`
p_3er
  • 浏览: 51891 次
  • 性别: Icon_minigender_1
  • 来自: 广州
文章分类
社区版块
存档分类
最新评论

warning: push.default is unset的解决方案

 
阅读更多

在执行 git push 时看到如下消息:

warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

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

  git config --global push.default simple

经百度后,得知‘matching’ 参数是 Git 1.x 的默认行为,其意是如果你执行 git push 但没有指定分支,它将 push 所有你本地的分支到远程仓库中对应匹配的分支。而 Git 2.x 默认的是 simple,意味着执行 git push 没有指定分支时,只有当前分支会被 push 到你使用 git pull 获取的代码。


根据提示,修改git push的行为:

git config --global push.default matching

再次执行git push 得到解决。

分享到:
评论

相关推荐

    window 本地执行 hadoop 缺失的hadoop.dll 和 winutils.exe 文件

    Caused by: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset. at org.apache.hadoop.util.Shell.checkHadoopHomeInner(Shell.java:468) at org.apache.hadoop.util.Shell....

    Hadoop集群上安装hive并运行一个例子的排错分析

    其中包括一些排错方法:Error: org.apache.hadoop.mapred.JobConf.unset(Ljava/lang/String;)V 以及:FAILED: Error in metadata: javax.jdo.JDOFatalDataStoreException: Failed to start database 'metastore_db',...

    cs_polymer_test:测试从内容脚本访问聚合物属性

    指示 安装扩展。... 在第 5 行,您可以看到内容脚本 (CS) 尝试设置 my-element 属性,但没有“ME:mypropertyChage ...unset->assigning to property...”消息。 在第 6 行,您可以看到 CS 设置了一个 my-

    关于LM_LICENSE_FILE环境变量冲突问题

    当我们 一台电脑安装多个软件时候,比如Libero,modelsim,cadence等,破解时候会用到环境变量LM_LICENSE_FILE,那么各软件对应的破解文件是不一样的,如图环境变量,那么怎样解决一个变量名对应多个变量值呢?

    会动的多帧Gif验证码 v1.0.zip

    ... 使用方法非常简单 ...isSet($_SESSION['code']) Or StrToLower($_SESSION['code'])!=StrToLower($cod)){ throw New Exception('Error:'.__LINE__.',驗證碼錯誤!');Die(); }unSet($cod,$_SESSION['code']);

    phpcs-variable-analysis:使用PHP Codesniffer静态分析工具查找未定义和未使用的变量

    (嗅探代码: VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable ) 如果在未定义的情况下在unset()中使用了变量,则会发出警告。 (嗅探代码: VariableAnalysis.CodeAnalysis.VariableAnalysis....

    php.ini-development

    directive because it is not set or is mistyped, a default value will be used. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, ...

    leetcode2sumc-leetcode-php:Leetcode在PHP上的解决方案

    上的解决方案 简单的水平 1. 二和 显示解决方案 function twoSum ( $ nums , $ target ) { foreach ( $ nums as $ key => $ val ) { unset( $ nums [ $ key ]); $ nextKey = array_search (( $ target - $ val ), $ ...

    会动的gif图片验证码

    调用: ..."> ...isSet($_SESSION['code']) Or StrToLower($_SESSION['code'])!=StrToLower($cod)){ throw New Exception('Error:'.__LINE__.',驗證碼錯誤!');Die(); }unSet($cod,$_SESSION['code']);

    object-subscribe:订阅对对象的更改

    不引人注意的JS对象订阅 缩小1.3 kb,缩小0.6 kb,然后压缩 npm install object-subscribe 创建并订阅对象 创建一个对象: var person = { name : 'Joey' , ... Obj.unset Obj.reset Obj.chang

    会动的多帧gif图片验证码

    說明: ...isSet($_SESSION['code']) Or StrToLower($_SESSION['code'])!=StrToLower($cod)){ throw New Exception('Error:'.__LINE__.',驗證碼錯誤!');Die(); }unSet($cod,$_SESSION['code']);

    PHP面向对象技术(全面讲解)

    本部分一共包括以下一些技术点:  1.面向对象的概念  2.什么是类,什么是对象,类和对象这间的关系  3....  4.... 5.... 6.... 7.... 8.... 10.__set()、 __get()、 __isset()、 __unset()四个方法的应用

    LAMP大讲堂PHP面向对象技术全面讲解

    资源名称:LAMP大讲堂 PHP 面向对象技术全面讲解 内容简介:1....封装性10._set()、_get()、_isset()、_unset()四个方法的应用11.类的继承12.多态的应 资源太大,传百度网盘了,链接在附件中,有需要的同学自取。

    PHP面向对象技术(全面讲解)(高洛峰)

    10.__set() __get() __isset() __unset()四个方法的应用 11.类的继函 12.多态的应用 13.重载新的方法 14.访问类型 15.静态成员的使用 16.final关键字的应用 17.__toString()方法 18.克隆对象 19.__call处理调用错误 ...

    PHP面向对象技术_全面讲解

    10.__set() __get() __isset() __unset()四个方法的应用 11.类的继函 12.多态的应用 13.重载新的方法 14.访问类型 15.静态成员的使用 16.final关键字的应用 17.__toString()方法 18.克隆对象 19.__call处理调用错误 ...

    php面向对象技术

    10.__set()、__get()、__isset()、__unset()四个方法的应用 11.类的继承 12.多态的应用 13.重载新的方法 14.访问类型 15.静态成员的使用 16.final 关键字的应用 17.__toString()方法 18.克隆对象 19.__call 处理调用...

    PHP 面向对象技术(全面讲解).txt

    1.面向对象的概念 面向对象编程(Object Oriented Programming, OOP, 面向对象程序设计)是一种计算机编程 架构,OOP 的一条基本原则是计算机程序是由单个能够起到子程序作用的单元或对象组合而成,OOP ...

    php pdo组件的用法

    单条查询不需要启用事务处理,并且不需要使用PDO的预处理方式,但注意要使用$pdo->quote()... unset($pdo); //注销pdo对象 } catch (Exception $e) { die('<span style="color:#F00;">数据库连接失败</span>'); } ?>

    Java邮件开发Fundamentals of the JavaMail API

    be an open relay, as authentication is supported, but it is your responsibility to ensure the SMTP server is configured properly. There is nothing in the JavaMail API for tasks like configuring a ...

Global site tag (gtag.js) - Google Analytics