简体   繁体   English

git branch列出上游的分支

[英]git branch list the branches with upstream

Git i have default master branch and origin/master. git我有默认的master分支和origin / master。

To list the remote and local branches i used git branch -a 要列出远程和本地分支,我使用了git branch -a

列出远程和本地分支

Next when i am using cmd git branch -vv 接下来,当我使用cmd git branch -vv

在此处输入图片说明

when i am using git branch -vv inside the box with color of blue [origin/master] is available so what is mean by that ? 当我在蓝色[origin / master]颜色的框内使用git branch -vv时,这是什么意思?

Could you please some one help me ? 你能帮我一个忙吗?

The text in blue is showing you the upstream branch which is associated with the local branch. 蓝色文本显示与本地分支关联的上游分支。 ie origin/master is the upstream branch of master . origin/master是上游分支master

More information here: https://git-scm.com/book/ch3-5.html 此处提供更多信息: https : //git-scm.com/book/ch3-5.html

That shows you which branch that branch is tracking. 这将向您显示该分支正在跟踪哪个分支。 In your case, master is tracking origin/master . 在您的情况下, master正在跟踪origin/master

Ttracking branches, when pushed, push to the branch they track. 跟踪分支,在被推动时,将推到它们跟踪的分支。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM