首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >git push.default=current和push.default=upstream有什么不同?

git push.default=current和push.default=upstream有什么不同?
EN

Stack Overflow用户
提问于 2012-08-09 04:52:23
回答 2查看 49.1K关注 0票数 91

git-config的手册页列出了push.default的以下选项:

代码语言:javascript
复制
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的区别现在可能更清晰了。

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11872984

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档