title: How to tell git to ignore individual lines, i.e. gitignore for specific lines of code
body: <p><code>.gitignore</code> can ignore whole files, but is there a way to ignore specific lines of code while coding?</p>
  
  <p>I frequently and repeatedly add the same debug lines in a project, only to have to remember to remove them before committing. I'd like to just keep the lines in the code and have git disregard them.</p>