title: Is there a way to git gc / prune on a remote Git repository hosted by TFS 2013?
body: <p>Over time the size of <code>.git</code> folder grows for Git repositories hosted on TFS 2013 (Update 4).</p>
  
  <p>Whenever cloning those repositories, <code>.git</code> folder can be huge in size initially, until <code>git gc --aggressive --prune=now</code> is performed manually.</p>
  
  <p><a href="https://connect.microsoft.com/VisualStudio/feedback/details/1019193/unable-to-clean-a-git-repo-in-tfs">Microsoft says</a>, that TFS 2013 does not perform <code>git gc</code> operations on its own.
  Unfortunately, it also seems impossible to force TFS to do that.</p>
  
  <p><strong>Is there a way to gc/prune a Git repository hosted in TFS 2013 to reduce the initial size of .git directory?</strong></p>