Description
I have noticed that the repository contains a very large file in the GIT history. Is it possible that someone made a commit with some file or directory by mistake? It can be for example nodes_modules or some other like that, unless that really is the correct size of the repository.
I just made a clone of the repository and it took a long time to download it.
The file I refer to in a fresh clone of the repository is:
scratch-gui/.git/objects/pack/pack-c81e535f2cf1cd650ef7a6e69553ee444473a465.pack
Expected Behavior
Less time to clone (download) the repo
Actual Behavior
I just made a clone of the repository and it took a very long time to download it.
Steps to Reproduce
$ git clone https://github.com/LLK/scratch-gui.git
Cloning into 'scratch-gui'...
remote: Enumerating objects: 48, done.
remote: Counting objects: 100% (48/48), done.
remote: Compressing objects: 100% (47/47), done.
Receiving objects: 100% (67966/67966), 11.68 MiB | 815.00 KiB
$ cd scratch-gui
$ du -ch . | grep "G\t"
1.0G ./.git/objects/pack
1.1G ./.git/objects
1.1G ./.git
1.1G .
1.1G total
$ cd ./.git/objects/pack
$ ll
total 2199344
-r--r--r-- 1 garrapato staff 1904120 Sep 1 06:09 pack-c81e535f2cf1cd650ef7a6e69553ee444473a465.idx
-r--r--r-- 1 garrapato staff 1111074667 Sep 1 06:24 pack-c81e535f2cf1cd650ef7a6e69553ee444473a465.pack
The file already measures more than 1 GB!
Possible solution
If a file or directory was uploaded (committed) by mistake, it must be deleted from the story and the following article shows how to do it:
Removing sensitive data from a repository
Operating System and Browser
Mac OS 10.11.14
Chrome Versión 76.0.3809.132 (Build oficial) (64 bits)
I hope this information will be useful
Regards