title: Better way of making Git to turn a blind eye on my changes
body: <p>Is there some cleaner way to make Git just ignore some of my changes and never commit them?
  .gitattributes:</p>
  
  <pre>
  config_to_be_deviated.xml filter=qqq
  </pre>
  
  <p>.git/config:</p>
  
  <pre>
  [filter "qqq"]
   clean = "perl -ne 'print unless /git_please_dont_look_here/'"
   smudge = (Q=$(mktemp) && cat > $Q && patch -s $Q &lt; /tmp/pp && cat $Q && rm $Q)
  </pre>
  
  <p>The patch /tmp/pp adds my changes with "git_please_dont_look_here" in each line.
  Git removes all such lines before getting the file into repository and readds my changes when checking out it; I can continue adding and committing useful changes to <code>config_to_be_deviated.xml</code>, but changes in the patch will not be seen by Git.</p>