Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The closest you could get to doing this is by using <a href="http://schacon.github.com/git/git-read-tree.html#_sparse_checkout" rel="nofollow noreferrer">sparse checkout</a>, which means using Git 1.7+ and you still need to clone the repo (or use <a href="http://schacon.github.com/git/git-clone.html" rel="nofollow noreferrer"><code>clone</code></a>'s <code>--depth</code> option to do a shallow clone). Borrowing largely from <a href="https://stackoverflow.com/a/2467629/649852">this answer</a>, you could do the following:</p> <pre><code>git clone --no-checkout &lt;URL to git repo&gt; myrepo cd myrepo git config core.sparseCheckout true vim .git/info/sparse-checkout # Add files you want checked out git checkout &lt;branch you want&gt; </code></pre> <p>If you have Git version 1.7.7-rc0 or later, you can set configuration options with the <code>clone</code> command:</p> <pre><code>git clone --config core.sparseCheckout=true --no-checkout &lt;URL to git repo&gt; myrepo </code></pre> <p>Also, see the following:</p> <ul> <li><a href="https://stackoverflow.com/a/2587244/649852">Partial clone with Git and Mercurial</a></li> <li><a href="https://stackoverflow.com/a/610315/649852">How to retrieve a single file from specific revision in Git?</a></li> <li><a href="https://stackoverflow.com/questions/2336580/sparse-checkout-in-git-1-7-0">Sparse checkout in Git 1.7.0?</a></li> <li><a href="https://stackoverflow.com/questions/4114887/is-it-possible-to-do-a-sparse-checkout-without-checking-out-the-whole-repository">Is it possible to do a sparse checkout without checking out the whole repository first?</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

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