I download and update the https://github.com/gmatuz/inthewilddb repository using the following commands:
git clone https://github.com/gmatuz/inthewilddb ./inthewilddb/
git -C ./inthewilddb/ pull
The problem is that from all of the repo, I only need the inthewild.db
file which is about 90 megabytes, but when I run the clone it downloads about 5 gigabytes. It turns out that the .git/objects/
directory takes so much space after downloading.
Since I don't use git very often, I'm not sure why it takes up so much space. Can someone explain why this is the case?
Do I understand correctly that the concept of git itself does not involve the possibility of working with a specific file; in other words, you can't download one file and "follow" it, because here we work with directories? Maybe there is some way to download and keep track of updates only for the required file?
Of course I can use curl instead of git and just download the file I need; but then I have to download it each time instead of only when it's updated.