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

相關文章
相關標籤/搜索