最佳答案
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 的手册页已经更新(正如人们所期望的那样) ,所以现在 那里的区别可能更清楚了。