title: How to make git ignore temporary files created by MS Office (starting with ~$)
body: <p>My git repo includes MS Office files (Word, PPT, &amp; Excel), each time I open one of them a temporary file starting with <code>~$&lt;file-name&gt;</code> is created.  </p>
  
  <p>I tried adding <code>*/~$*</code> to the <code>.gitignore</code> file, but it still does not work; the temporary file still pops up in the change list shows that there are untracked changes all the time. I had to close all office files to know that my repo is up-to-date. </p>
  
  <p>How to solve this problem? Is there a special syntax for <code>.gitignore</code> for such files?</p>