• [git] push.default is unset


    git push的时候遇见报错:

    [root@D128 j]# 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
    
    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)
    
    Counting objects: 22, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (12/12), done.
    Writing objects: 100% (12/12), 1.05 KiB | 0 bytes/s, done.
    Total 12 (delta 10), reused 0 (delta 0)
    remote: 
    remote: To create a merge request for dev_nlb_redis, visit:
    remote:   http://git.xx.com/xx/xx/merge_requests/new?merge_request%5Bsource_branch%5D=dev_nlb_redis
    remote: 
    To git@git.xx.com:iaas-sdn/j.git
       b46416f..7efce6c  dev_n -> dev_n
    [root@D128 j]# git branch

    大概意思:

    当 push.default 的值设置成 ‘matching’ ,git 将会推送所有本地已存在的同名分支到远程仓库
    从 Git 2.0 开始,git 采用更加保守的值'simple',只会推送当前分支到相应的远程仓库,'git pull' 也将值更新当前分支。

    正确的处理,是设置一下这个值:

    git config --global push.default simple

    https://www.jianshu.com/p/e26175b2e916

  • 相关阅读:
    jsp第六周作业
    jsp第四周作业
    jsp第一周周作业
    第一次软件测试课堂练习
    4.11jsp
    第六周作业
    第三周jsp作业
    3.10 jsp作业
    3.4软件测试
    JSP第六周作业
  • 原文地址:https://www.cnblogs.com/hugetong/p/8882685.html
Copyright © 2020-2023  润新知