Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce running time by using git clone --depth 1 #166

Open
rgaiacs opened this issue Jul 27, 2023 · 0 comments
Open

Reduce running time by using git clone --depth 1 #166

rgaiacs opened this issue Jul 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@rgaiacs
Copy link
Contributor

rgaiacs commented Jul 27, 2023

git clone --depth 1 do a shallow clone of the repository where only the latest commit is available.

Normal clone

$ 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.

Shallow clone

$ 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.

Limitations

git2r does not support shallow clone: ropensci/git2r#294

@rgaiacs rgaiacs added the enhancement New feature or request label Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant