git push warning: push.default is unset;

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)

Everything up-to-dategit


下面说一下push.default matchingpush.default simple的区别:this

push.default设置maching的意思是:git push 会把你本地全部分支push到名称相对应的远程主机上。这意味着可能你会在不经意间push一些你本来没打算push的分支。spa

push.default设置成simple的意思是:git push仅仅把当前所在分支push到从当初git pull pull下来的那个对应分支上,另外,这个过程也会同时检查各个分支的名称是否相对应。orm

相关文章
相关标签/搜索