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.
在大多数情况下,我会假设推送到分支的上游分支与推送到同名分支相同,因为上游分支通常具有相同的名称,并且由于同名分支(“当前” ) 通常(或根据定义总是?)在上游。那么有什么区别呢?
更新: git-config 的手册页已经更新(正如人们所期望的那样),因此现在所做的区别可能更加清晰。