title: How to merge a specific commit in Git
body: <p>I have forked a branch from a repository in GitHub and committed something specific to me. Now I found the original repository had a good feature which was at <code>HEAD</code>.</p>
  
  <p>I want to merge it only without previous commits. What should I do? I know how to merge all commits:</p>
  
  <pre><code>git branch -b a-good-feature
  git pull repository master
  git checkout master
  git merge a-good-feature
  git commit -a
  git push
  </code></pre>