title: Get a single file from a remote git repository
body: <p>Is there a way to programmatically download a single file from a remote git repository, in Java?</p>
  
  <ol>
  <li>I prefer a solution which uses as little bandwidth as possible, preferably only downloading that single file. I do not need to browse the repository, I already have the file's path.</li>
  <li>I prefer a solution which does not depend on other applications (e.g. an installation of another git client on the machine). A Java library which contains a git client implementation itself would be optimal.</li>
  </ol>
  
  <p>I was able to do something similar with Subversion using <a href="http://www.svnkit.com/" rel="noreferrer">SVNKit</a> and I've seen there is a pure java implementation of git (<a href="http://eclipse.org/jgit/" rel="noreferrer">eclipse's JGit</a>) which might be able to do something similar, so I hope there is a positive answer; though from what I understand about how git works - allowing updates only from local repositories - this could prove to be problematic.</p>