Skip to content

get single file #1283

Answered by Byron
ToBinio asked this question in Q&A
Feb 11, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The git protocol does not allow to fetch individual objects unless their git-hash is known, which is probably not the case here.

Otherwise one can only limit the amount of data cloned, which is probably easiest by making a shallow clone.

It's probably better to fall back to that only when there is on cloud-provider, and do an HTTP fetch of the respective file from GitHub/GitLab/… instead.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ToBinio
Comment options

Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants