github - Git fetch remote pulls in new branches but new branch doesn't show up -


i ran these commands, new branch fetched github doesn't show when run git branch after running git fetch origin:

cacsvml-13295:smartconnect amills001c$ git fetch origin remote: counting objects: 426, done. remote: compressing objects: 100% (223/223), done. remote: total 426 (delta 269), reused 287 (delta 188) receiving objects: 100% (426/426), 113.77 kib | 76.00 kib/s, done. resolving deltas: 100% (269/269), done. github.csv.comcast.com:baymax/smartconnect  * [new branch]      enrichmentasync-module -> origin/enrichmentasync-module  * [new branch]      github_master_now -> origin/github_master_now  * [new branch]      master_next_localmermorycache -> origin/master_next_localmermorycache  * [new tag]         0.0.4      -> 0.0.4  * [new tag]         0.0.5      -> 0.0.5 cacsvml-13295:smartconnect amills001c$ git branch   github_master_now   master * master_next   master_with_quick_fix_for_prod   mocha_deep_test   priya_testing_branch 

is there reason why new branch fetched remote (origin) doesn't show when run git branch command?

it have brought down branch remote tracking branch

origin/<branchname> 

you can view

git branch -r 

if want work in it, should create local branch of same name it.

git checkout -b <branchname> origin/<branchname> 

(in versions of git may able git checkout <branchname> , git figure out want create new local branch remote tracking branch)


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -