title: Git undo changes in some files
body: <p>While coding I added print statements into some files to keep track of what was going on.</p>
  
  <p>When I am done, is it possible to revert changes in some files, but commit the file I actually worked on? </p>
  
  <p>Say I added print in file <code>A</code>, but I modified file <code>B</code>. <code>B</code> is what I want to commit and <code>A</code>, I want to be set back to its old state.</p>