Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In the Git community what you want is called a “partial checkout”. It is not currently supported in Git, but it comes up every once in a while on the mailing list. Git has bits and pieces of the internals needed to support partial checkout, but there is no easy way to make use of them as a user. I would guess that Git will eventually be able to do partial checkouts, but it might be a while before it happens.</p> <p>In addition to <a href="https://stackoverflow.com/questions/1618025/clone-parts-of-a-github-project/1618068#1618068">jhs's answers</a> (subtree merge; rm, mv, commit, merge), there is also <a href="http://github.com/apenwarr/git-subtree" rel="nofollow noreferrer">a third-party ‘subtree’ command</a> that might help make it easier to work with partial checkouts. Though that is not its main goal, so it is not obvious how you might use it to work with a partial checkout. If you already know Git well enough, you could work it out, but if you are new to Git, this subtree command will likely be fairly opaque.</p> <p>Finally, if all you want to do is download the latest files, you might be able to <a href="http://article.gmane.org/gmane.comp.version-control.git/61118/" rel="nofollow noreferrer">use <code>git archive</code> to download a tar file of a specific branch or tag (or any commit-ish)</a>. This may not work with GitHub (it depends on server configuration), I have not checked. Even if it does not work directly, you could clone to your own ‘bare’, mirror repo and then pull (subtree) archives from that.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload