This is not a question on git merge origin branch
vs git merge origin/branch
git merge <branch>
merges the into the working branch. And so we need to specify the "source" of the branch. It can be a locally available origin/<branch>
or the local working branch heads/branch
.
But what's the need for origin
? Unlike git pull
we don't need to specify which remote source to fetch the from. A merge operation, to my understanding, is a local operation.