version control - Why does a 'git pull' not also update the remote branch I pulled from? -


i have forked repository, set remote called origin, , forked original repository have push access to, called upstream.

i have checked out patch release branch stored in both repositories:

git branch -va  develop                              8888888 patch-branch-0.9.x                   1111111 remotes/origin/develop               8888888 remotes/origin/patch-branch-0.9.x    1111111 remotes/upstream/develop             8888888 remotes/upstream/patch-branch-0.9.x  1111111 

i know there have been merged pull requests in upstream, if to run git fetch --all git branch -va, might expect see:

git branch -va  ... patch-branch-0.9.x                   1111111 ... remotes/upstream/patch-branch-0.9.x  2222222 

but prefer simple pull when updating local branch. but, when run pull upstream:

git checkout patch-branch-0.9.x git pull upstream patch-branch-0.9.x 

even though reports:

from https://bitbucket.org/...  * branch            patch-branch-0.9.x -> fetch_head updating 1111111..2222222 

it not seem update status of branch pulled from, end with:

git branch -va  ... patch-branch-0.9.x                   2222222 ... remotes/upstream/patch-branch-0.9.x  1111111 

so though local branch has been updated fast-forward remote upstream branch, still have run git fetch --all have git branch -va report proper head commit remote branch. (even though it's 1 pulled from!)

is standard behavior? under impression pull fetch followed merge?


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -