Re:Git partial clone lets you fetch only the large file you ...
by nikivi on Saturday March 14, 2020 @12:45PM
(#22576628)
Is it possible given a git repo (hosted on say GitHub) to only 'clone' (download) certain files from it? Without `.git`
[ Parent
| on HN ]
Re:Git partial clone lets you fetch only the large file you ...
by fizixer on Saturday March 14, 2020 @12:50PM
(#22576659)
I believe you're looking for the 'working tree' only. You could do the following:
git archive --remote=<your-URL> | tar -t
Re:Git partial clone lets you fetch only the large file you ...
by calvinlh on Saturday March 14, 2020 @01:34PM
(#22576970)
If you only want a subset of the repo's files, you can use Github's Subversion interface: https://stackoverflow.com/a/18194523
Re:Git partial clone lets you fetch only the large file you ...
by bspammer on Saturday March 14, 2020 @07:59PM
(#22579761)
Short answer is, not easily: https://stackoverflow.com/a/14610427
You can get the most recent tree for a repository (no history, just the current state of the repo) with `git clone --depth=1`. That's often good enough for slow connections.