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.
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>