Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can't download single files or folders from a git repo, since git tracks the full state of a project as a whole, not just single files. There is a possibility to clone only a limited set of revisions (called shallow clone) from a remote repositoy, but such clones are restricted to a limited set of operations, for example you can't clone from a shallow clone, or push something from such a repo.</p> <p>If the size of a git repo bothers you, you can <code>git gc</code> to make git reorganize the object database, which sometimes can get size improvements.</p> <p>When you want to have a local cache, you can use <code>git clone --mirror $REMOTE_URL</code> to create a clone, which</p> <ul> <li>tracks all remote branches (see <a href="https://stackoverflow.com/questions/3959924">What&#39;s the difference between git clone --mirror and git clone --bare</a>)</li> <li>is a bare repo (=has no working copy, see <a href="http://gitready.com/advanced/2009/02/01/push-to-only-bare-repositories.html" rel="nofollow noreferrer">gitready.com</a> or <a href="https://stackoverflow.com/questions/2147741/git-push-only-for-bare-repositories/2149539#2149539">this SO question</a> why this is a good idea for a cache repo)</li> <li>act as a local cache, or a staging repo</li> </ul> <p>You can clone new working repos from this local cache repo, and either push directly into the upstream repo (you need to <code>git remote add upstream $REMOTE_URL</code> in your working copy to add the link to the upstream repo, afterwards you can <code>git push upstream</code>), or you can push into the local cache repo, and push to the upstream repo from there.</p>
    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. 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.
    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