The remote repository has two branches: master, develop.
Then, I checked my local branch by git branch
, I notice I have only master branch, so I run command git fetch origin
.
After this, when I run "git branch
" again, I still see only master branch, why, isn't "git branch
" supposed to list all local branches?
Does it mean the git fetch origin
does not yet make the develop as my local branch? Then what git fetch
actually doing?
(But I can see develop branch with git branch -r
)