git-config的手册页列出了push.default的以下选项:
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:为的git-config中的男子页面已经更新(如人们所期望的),这样的区分做出有可能是一个更加清晰了。