Hacker News new | ask | show | jobs
by gwbas1c 1376 days ago
At times a single large file is easier to handle than many small files.

Ever try and copy the .git part of a git repo? When it gets big, the copy gets bogged down by the sheer number of files.

1 comments

If you do a git clone locally (yes, git clone works with local paths) you can get all git objects packed into a single .pack file). The pack file may also deduplicate unchanged portions of tracked files. You can even do a shallow clone to reduce the size (and history) of the pack file.

All of this is also possible to do on a repository locally, without cloning.