title: Modifying a file after "git add"
body: <p><strong>Scenario</strong></p>
  
  <p>Due to PHPMD and PHPCS checks that run during a commit, I often need to modify files that have already been affected by "git add".</p>
  
  <p>If I modify a file that is added, and retry the commit, the changes aren't recognized, so the commit will fail again.</p>
  
  <p>I then need to "git reset" the files to un-add them, then re-"git add" them and run the commit again.</p>
  
  <p><strong>Question</strong></p>
  
  <p>Is there a way to update the files that are staged for a commit, without having to un-add and re-ad them?</p>
  
  <p><em>I apologize if this is a duplicate. All my searches seem to only show results for different problems with similar words.</em></p>