title: What are the difference between Cherry-pick and patch apply?
body: <p>I am aware about git cherry-pick and git apply terminalogies. But today i came across with some issue. I was applying one patch by using the diff of two revisions. I used the below command:</p>
  <blockquote>
  <p>git diff HEAD  &gt; diff.patch</p>
  <p>git apply diff.patch</p>
  </blockquote>
  <p>I got patch apply failed for one file.</p>
  <p>Then i simply tried to <strong>cherry-pick</strong> the commit-id2. It is cherry-picked successfully.</p>
  <p>What may be the reason? Anyone wants to throw some light on the same.</p>