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 $