I have a git repo a couple of months old. Is it possible to compute/plot the size in MB of the internal git repository (compressed size) as a function of commits (or date for that matter) pushed to the remote?
Since branches can be developed in parallel a given commit might not reflect changes being pushed to another branch.
So having a CI job that runs a git pull each day followed by: https://git-scm.com/docs/git-count-objects
and stores the result in a db might be a way to do this. This assumes that the CI job is activated the same day the repository is created.
Could be great if it was possible to compute this information going back in time on already existing repositories.
I understand that using commits does not really make sense. I would like some way of seeing how it increases in size as some function of time, like they do here: http://blogs.wandisco.com/2013/08/23/git-repository-metrics/
git count-objects -v
? – Statist