warning: push.default is unset; its implicit value is changing in Git 2.0 from 'matching' to 'simple'.

'matching'参数是 git 1.x 的默认行为,其意是如果你执行 git push 但没有指定分支,它将 push 所有你本地的分支到远程仓库中对应匹配的分支。
而 Git 2.x 默认的是 simple,意味着执行 git push 没有指定分支时,只有当前分支会被 push 到你使用 git pull 获取的代码。
解决办法是:
git config --global push.default matching
git查看当前分支的方法
查看远程分支:git branch -a
查看本地分支:git branch
创建分支:git branch test
把分支推送到远程分支:git push origin test
切换分支到test:git checkout test
warning: push.default is unset; its implicit value is changing in Git 2.0 from 'matching' to 'simple'.的更多相关文章
- Git warning push.default is unset
		
warning: push.default is unset; its implicit value is changing in Git 2.0 from 'matching' to 'simple ...
 - warning: push.default is unset;
		
git push warning questions This warning was introduced in Git 1.7.11 along with the simple style of ...
 - git push.default is unset
		
warning: push.default is unset; its implicit value is changing inGit 2.0 from 'matching' to 'simple' ...
 - git push default
		
今天使用git push的时候出现了如下提示: warning: push.default is unset; its implicit value is changing in Git 2.0 fr ...
 - Git 2.x 中git push时遇到 push.default 警告的解决方法
		
近在学习使用 git&GitHub,然后今天遇到了一个问题.在执行 git add 和 git commit 操作之后,再进行 git push 操作,出现了如下提示: $ git push ...
 - Git 2.0 更改 push default
		
近期更新了git,项目push时会提示这样的信息: warning: push.default 尚未设置,它的默认值在 Git 2.0 已从 'matching' 变更为 'simple'.若要不再显 ...
 - git push.default设置
		
转自:http://blog.csdn.net/daijingxin/article/details/51326715 在进行一次空仓库的提交时,我遇到了这个警告 警告如下: warning: pus ...
 - [git]解决:git config --global push.default matching
		
解决:git config --global push.default matching 这个警告的意思是:需要设置默认push的分支,所以设置好全局push的默认分支就好了.命令如下: 在有git目 ...
 - git init error:Malformed value for push.default: simple
		
git init error:Malformed value for push.default: simple 1.git config --global push.default matching
 
随机推荐
- 【贪心】Mixing Milk
			
题目描述 The Merry Milk Makers company buys milk from farmers, packages it into attractive 1- and 2-Unit ...
 - HKSCS
			
香港增补字符集(HKSCS) 背景介绍 背景资料 ======== 目前,大部份不同語文的電腦系統,都有不同的編碼標準.如中文的系統就有BIG5和GB2312/GBK.各種文字有不同的文字編碼,不同系 ...
 - HDOJ 1300 Pearls 斜率优化dp
			
原题连接:http://acm.hdu.edu.cn/showproblem.php?pid=1300 题意: 题目太长了..自己看吧 题解: 看懂题目,就会发现这是个傻逼dp题,斜率优化一下就好 代 ...
 - VMware Converter 迁移物理机到 esxi 虚拟机
			
http://dngood.blog.51cto.com/446195/685082/ VMware Converter 有啥用? VMware Converter 是一款能将物理电脑系统.VMwa ...
 - 【转】matlab 字符串处理函数
			
原文地址 matlab 字符串处理函数 % 字符串处理 a=' a';b='b b';c='cccc';m='' % 获取字符串长度 length(a) % 连接两个字符串,每个字符串最右 ...
 - The newly created daemon process has a different context than expected
			
Error: The newly created daemon process has a different context than expected. It won't be possible ...
 - [Algorithms] Classify Mystery Items with the K-Nearest Neighbors Algorithm in JavaScript
			
The k-nearest neighbors algorithm is used for classification of unknown items and involves calculati ...
 - Angular 学习笔记——模块之间的通讯
			
<!DOCTYPE HTML> <html ng-app="myApp"> <head> <meta http-equiv="C ...
 - 系统封装 EasyBoot如何将WIN7安装版提取到光盘
			
1 将WIN7光盘中的文件提取到Easyboot根目录,注意不要autorun.inf和setup.exe这两个文件.我们这里的Easyboot已经有了一些其他东西(XP的安装版文件,PE的文件等等, ...
 - 小计一次linux下渗透方法
			
本文转自91ri 踩点 目标域名是XX.com 我们的目标是大站,所以主站一般都挺安全的,所以直接寻找二级目录,运气好时能找到一些开源的cms,运气更好点找到个dede啥的,那就…. 我们直接枚举他域 ...