‘git pull origin mybranch’ leaves local mybranch N commits ahead of origin. Why?
git pull calls git fetch with the appropriate parameters before merging the explicitly fetched heads (or if none the remote branch configured for merge) into the current branch. The syntax: git fetch <repository> <ref> where <ref> is just a branch name with no colon is a ‘one shot’ fetch that doesn’t do a standard fetch … Read more