I thought that "git pull" includes merge, seems not, what am not understanding? -
i have 2 branches sw-dev
, make
. have file variables.mk
changed locally in make
branch. in meantime, file changed in origin sw-dev
repository include line blk := pl/blocks
. when
>git pull origin sw-dev
i expect there either silent or conflict merge. no, nothing happens, date. missing??
>git checkout origin/sw-dev head @ 4f391d3... merge branch 'sw-dev' of ssh://(...)/tools/git/xdk sw-dev >grep blk variables.mk blk := pl/blocks >git checkout make switched branch 'make' >git pull origin sw-dev /tools/git/xdk * branch sw-dev -> fetch_head up-to-date. >grep blk variables.mk >git status variables.mk # on branch make nothing commit, working directory clean
you not missing anything, pull fetch branch , merges current one. telling branch make contains commit hashes in origin/sw-dev. have had include commit 4f391d3 make branch @ point.
do git log in make , hash 4f391d3 verify it.
do git reflog check last commands executed , see when did .
Comments
Post a Comment