的混帳配置手冊頁列出了這些選項push.default:git push.default = current和push.default = upstream有什麼區別?
nothing - do not push anything.
matching - push all matching branches. All branches having the same name in both ends are considered to be matching. This is the default.
upstream - push the current branch to its upstream branch.
tracking - deprecated synonym for upstream.
current - push the current branch to a branch of the same name.
在大多數情況下,我會假設,推到一個分支的上游分支將是一樣推到同名的一個分支,因爲上游分支通常具有相同的名稱,並且因爲同名(「當前」)的分支通常(或者總是按照定義?)在上游。那有什麼區別?
UPDATE:The man page for git-config已更新(如人們所期望的),這樣做there的區別可能是更加清晰了。
對於開發人員來說,確實很煩人,因此引入了「簡單」,並且將成爲git-push的默認行爲。實際上它出現在[git 1.7.11](https://raw.github.com/git/git/master/Documentation/RelNotes/1.7.11.txt) – xhlwill 2012-12-27 09:21:47
有關最近的git警告'push.default的更多信息,未設置;它的隱含價值在Git 2.0中發生變化,並且與'''匹配'和'simple'有關。請參閱http://stackoverflow.com/questions/13148066/warning-push-default-is-unset-its-implicit-value-is-changing -in-git-2-0 – Nate 2013-02-11 17:30:06
iconoclaust:我不認爲我的編輯完全改變了問題的完整性,並且過時的信息只是需要修復。爲什麼要讓用戶做點擊鏈接的額外工作? – Flimm 2013-11-22 15:50:23