[git] Git pull till a particular commit

I want to do a git pull but only till a specific commit.

 A->B->C->D->E->F (Remote master HEAD)

so suppose my local master HEAD points to B, and I want to pull till E. What should I do ?

This is not pulling a specific commit, this is pulling upto a specific commit.

This question is related to git github

The answer is

git pull is nothing but git fetch followed by git merge. So what you can do is

git fetch remote example_branch

git merge <commit_hash>

Similar questions with git tag:

Similar questions with github tag: