git pull a specific sha

C++
git fetch origin
git merge YOUR_SHA_HERE

Source

Also in C++: