title: How to Prevent Garbage Collection in GIT?
body: <p>Git mysteriously runs Garbage collection "from time to time" and deletes and orphaned commits you have.</p>
  
  <p><a href="https://www.kernel.org/pub/software/scm/git/docs/git-gc.html" rel="noreferrer">https://www.kernel.org/pub/software/scm/git/docs/git-gc.html</a></p>
  
  <p>Scientifically, this will occur approximately 6-8 hours before you realize you <em>really needed that commit</em> which was just deleted.</p>
  
  <p>I'd rather not have my files deleted by Git. How can I disable automatic garbage collection altogether?</p>