git pull a specific commit code example
Example 1: git pull from commit
git merge <commit_id>
Example 2: git pull from previous commit
# This will detach your HEAD, that is, leave you with no branch checked out:
git checkout 0d1d7fc32
Example 3: git pull from previous commit
git checkout -b old-state 0d1d7fc32
Example 4: how to do a pull request with one commit
git fetch origin
git checkout -b add-log-component origin/add-log-component
git checkout master
git cherry-pick COMMIT-HASH-HERE
git push origin master