1 错误还原:
在执行 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
2 产生原因:
大概意思是:
push.default 没有设置。push.default 默认的值,在Git 2.0下,从’matching’ 变成了’simple’.
3 解决方法:
//设置默认行为为simple。 Git2.0以后git config --global push.default simple //设置默认行为为matching。Git2.0以前git config --global push.default matching