I have a folder project with large number of files and subfolders. I have created a repository of this folder via git init to obtain the folder structure below.
project --- .git/ --- large number of files and folders .gitignore'd --- very few text and related files not under .gitignore --- .gitignore The very first (and thus far only) commit in the repository only contained a few text and related files not .gitignore'd.
The raw size of the committed files on my disk (working tree) is just a few kilobytes.
More specifically, the committed files are:
3 .tex files of total size 9 KB 4 .lyx files of total size 32 KB 1 .gitignore file of size 1 KB 3 other .txt files of total size 4 KB Yet, at this stage, the raw size of the .git folder is 84 MB. The size of the project folder itself is around 5 GB, most of which are .gitignore'd.
Is there a way I can try to figure out what is causing this large gap between the actual committed files and the size of the .git folder?
git ls-filescommand to make sure that there is nothing included that you don't want.