title: How can I add a file to the last commit in Git?
body: <p>Sometimes after I did a commit, I found out that I left out a file which should also be included in the commit, but was actually not. I often committed again:</p>
  <pre><code>git add the_left_out_file
  git commit &quot;include the file which should be added in the last commit&quot;
  </code></pre>
  <p>I think it might not be a good idea to do so. I want to just include the file without adding a commit. Something like this,</p>
  <pre><code>git add the_left_out_file
  git add_staged_files_to_previous_commit
  </code></pre>
  <p>Is it possible?</p>