Assume project where no add and commit has been done for a long time.
I do git add .
but it takes too much time.
I would like to estimate which files/directories are most expensive in the current case.
I have a good .gitignore
file which works sufficiently but, still sometimes, I have too much and/or something too difficult to be added and committed to Git.
I have often directories which size is from 300GB to 2 TB in my directories.
Although excluding them by directory/*
and directory/
in .gitignore
, the addition is slow.
How can you estimate which directories/files are too expensive to be committed?