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.
在大多数情况下,我会假设推送到分支的上游分支与推送到同名的分支是相同的,因为上游分支通常具有相同的名称,并且由于相同名称的分支(“当前”)通常(或者总是根据定义?)往上游走。那么有什么不同呢?
更新:The man page for git-config已经更新了(不出所料),所以there的区别现在可能更清晰了。
https://stackoverflow.com/questions/11872984
复制相似问题