User Tools

Site Tools


git_bare_shallow_clones

This is an old revision of the document!


Overview

Quick coverage of what you can do with bare/shallow clones, particularly with respect to tagging.

Variations

full clone

$ du -s full
207848	full
$

bare clone

$ du -s bare
186116	bare
$

shallow (--depth 1) clone

$ git clone --depth 1 --branch master https://github.com/progit/progit2.git shallow
Cloning into 'shallow'...
remote: Enumerating objects: 507, done.
remote: Counting objects: 100% (507/507), done.
remote: Compressing objects: 100% (394/394), done.
remote: Total 507 (delta 113), reused 352 (delta 96), pack-reused 0
Receiving objects: 100% (507/507), 13.92 MiB | 11.22 MiB/s, done.
Resolving deltas: 100% (113/113), done.
$
$ du -s shallow
36112	shallow
$
git_bare_shallow_clones.1568889350.txt.gz · Last modified: 2019/09/19 10:35 by rpjday