title: Git export achive directly from origin
body: <p>I would like to create a simple script, that will download plugins from remote repositories into directory. I have an array of URLs, to git files on remote server - like this one from GitHub <a href="https://github.com/nette/sandbox.git" rel="nofollow noreferrer">https://github.com/nette/sandbox.git</a>. GitHub has support for downloading ZIP archives but I have plugins from <strong>many other repositories</strong> which doesn't offer this option.</p>
  
  <p>Back to my question - is there any option how to get the archive instead of downloading full repository and exporting archive from it using git in command line? I have found this question - <a href="https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export">Do a &quot;git export&quot; (like &quot;svn export&quot;)?</a> - but this wouldn't be possible using PHP.</p>