tag:help.appveyor.com,2012-11-13:/discussions/suggestions/193-gitAppVeyor: Discussion 2018-10-19T08:16:31Ztag:help.appveyor.com,2012-11-13:Comment/326872812014-04-24T17:29:02Z2014-04-24T17:29:02ZGit<div><p>Unlike Mercurial, Git doesn't allow cloning/fetching particular
commit. I'm afraid slicing the last commit with depth=1 won't
guarantee that this is exactly the commit you were looking for,
especially within large teams committing often (there may be newer
commit between that commit and the moment build starts).</p>
<p>What could be really interesting is downloading GitHub repo
using API: <a href=
"https://developer.github.com/v3/repos/contents/#get-archive-link">https://developer.github.com/v3/repos/contents/#get-archive-link</a>
We haven't tried that yet, but I guess it might be much faster
(provided you don't need a real Git repo in your build folder).</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/326872812014-04-25T05:13:33Z2014-04-25T05:13:33ZGit<div><p>Here's a trick. Github has an SVN interface so you can do</p>
<p><a href=
"http://stackoverflow.com/questions/9609835/git-export-from-github-remote-repository">
http://stackoverflow.com/questions/9609835/git-export-from-github-r...</a></p>
<p>and get only the latest files.</p></div>bradphelantag:help.appveyor.com,2012-11-13:Comment/326872812014-04-25T05:14:58Z2014-04-25T05:14:58ZGit<div><p>but the tarball export is probably the fastest</p></div>bradphelan