title: How do I apply rejected hunks after fixing them?
body: <p>I'm trying to apply a patch to a file using <code>git apply</code>. The overall patch failed, so I used <code>git apply --reject</code>. </p>
  
  <p>Inspecting the generated <code>.rej</code> file showed me what's wrong, now I fixed the problem in the <code>.rej</code> file.</p>
  
  <p>But trying to apply the <code>.rej</code> file fails with message </p>
  
  <blockquote>
    <p>fatal: patch fragment without header at line 2: ...</p>
  </blockquote>
  
  <p><strong>Is there a way to re-apply the <code>.rej</code> file after fixing the problems there?</strong>
   Or do I have to modify the original patch and have to re-run <code>git apply</code>?</p>
  
  <p>This would be a bit cumbersome in that case since the original patch contains patches for dozens of files and I don't want to <code>git checkout</code> the applied modifications in order to re-<code>git apply</code> the whole fixed patch file.</p>