title: How can I prevent git corruption on linux virtual machine?
body: <p>I have a virtual machine (Virtual Box) on a Windows host running Linux on the guest.
  I have a git repo on the client with file sharing set up with Samba in such a way that it's in my Network Locations.
  I run SourceTree as my git client from my Windows host to affect the repo on the VM.</p>
  
  <p>The issue is that every once in a while, the git objects on my guest get corrupted. I have already found (and keep finding) ways to fix the git repo after it's corrupted. I have fixed it, and it works. The issue is that the fix removes my uncommitted changes so I have to back up every time.</p>
  
  <p>My question is, how, if possible, can I PREVENT the corruption of those git objects?</p>
  
  <p>It should be noted that: </p>
  
  <ul>
  <li>I don't force-shut down the VM.</li>
  <li>I have tried turning off auto-refresh in Source-Tree.</li>
  <li>I am aware that I can back up the git files at the end of every work session and avoid losing progress like that but that's annoying.</li>
  </ul>
  
  <p>I am open to any suggestions.</p>