简体   繁体   中英

git branch list the branches with upstream

Git i have default master branch and origin/master.

To list the remote and local branches i used git branch -a

列出远程和本地分支

Next when i am using 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 ?

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 .

More information here: 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 .

Ttracking branches, when pushed, push to the branch they track.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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