A git fetch
does not merge. It does not update your working copy. A merge is automatic when you do a git pull
.
So creating a new remote-tracking branch by fetching does not actually merge anything into your working tree, you must decide what to do now.
A git merge origin/master
will merge in the remote origin server branch of master to your working directory.
If you want to merge directly to your working tree use git-pull
, from the man page:
More precisely, git pull runs git fetch with the given parameters and calls git merge to merge the retrieved branch heads into the current branch. With --rebase, it runs git rebase instead of git merge.