Open rgaiacs opened 1 year ago
git clone --depth 1 do a shallow clone of the repository where only the latest commit is available.
git clone --depth 1
$ git clone git@github.com:GESIS-Methods-Hub/minimal-guide-example-docx.git remote: Enumerating objects: 47, done. remote: Counting objects: 100% (47/47), done. remote: Compressing objects: 100% (34/34), done. remote: Total 47 (delta 18), reused 31 (delta 10), pack-reused 0 Receiving objects: 100% (47/47), 207.90 KiB | 825.00 KiB/s, done. Resolving deltas: 100% (18/18), done.
$ git clone --depth 1 git@github.com:GESIS-Methods-Hub/minimal-guide-example-docx.git Cloning into 'shallow'... remote: Enumerating objects: 10, done. remote: Counting objects: 100% (10/10), done. remote: Compressing objects: 100% (9/9), done. remote: Total 10 (delta 0), reused 4 (delta 0), pack-reused 0 Receiving objects: 100% (10/10), 155.26 KiB | 845.00 KiB/s, done.
git2r does not support shallow clone: https://github.com/ropensci/git2r/issues/294
git2r
git clone --depth 1
do a shallow clone of the repository where only the latest commit is available.Normal clone
Shallow clone
Limitations
git2r
does not support shallow clone: https://github.com/ropensci/git2r/issues/294