今天使用git push的時候出現了以下提示: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 When push.default is set to 'matching', git will push local branches to the remote branches that already exist with the same name. In Git 2.0, Git will default to the more conservative 'simple' behavior, which only pushes the current branch to the corresponding remote branch that 'git pull' uses to update the current branch. 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)
這個提示的意思是:this
warning: push.default 未設置,它的默認值將會在 Git 2.0 由 'matching' 修改成 'simple'。若要再也不顯示本信息並在其默認值改變後維持當前使用習慣,進行以下設置: git config --global push.default matching 若要再也不顯示本信息並從如今開始採用新的使用習慣,設置: git config --global push.default simple 當 push.default 設置爲 'matching',git將推送本地分支到遠程已經存在的同名分支。Git 2.0 中,git 將默認使用更保守的 'simple' 行爲,僅僅只把當前的分支推送到遠程相對應的分支,使用 'git pull' 只更新當前分支。 參見 'git help config' 並查找 'push.default' 以獲取更多信息。 ('simple' 模式由 Git 1.7.11 版本引入。若是您有時要使用老版本的 Git, 爲保持兼容,請用 'current' 代替 'simple' 模式)