3 ms·
Is it possible given a git repo (hosted on say GitHub) to only 'clone' (download) certain files from it? Without `.git`
by nikivi 7y ago
Is it possible given a git repo (hosted on say GitHub) to only 'clone' (download) certain files from it? Without `.git`
- fizixer 7y agoI believe you're looking for the 'working tree' only. You could do the following: git archive --remote=<your-URL> | tar -t source: https://stackoverflow.com/questions/3946538 https://stackoverflow.com/questions/3946538
- calvinlh 7y agoIf you only want a subset of the repo's files, you can use Github's Subversion interface: https://stackoverflow.com/a/18194523 https://stackoverflow.com/a/18194523
- bspammer 7y agoShort answer is, not easily: https://stackoverflow.com/a/14610427 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.