【发布时间】:2013-11-12 07:07:14
【问题描述】:
当我在 Git 中推送到远程时,我收到以下警告:
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)
To **********************************
6b9a6d2..3ab1eab master -> master
这个警告是什么意思,应该怎么做?
【问题讨论】:
-
你能不能给你的推送命令。你错过了
> git push upstream mybranch的分支吗? -
注意:该消息将很快更新为 Git 2.0(2014 年第二季度)。见my answer below
-
注意:git 2.8(2016 年 3 月)将完全删除该警告。见my edited answer below