Is there a way to find out how much space was used by each commit? If I push after each commit, I will see how much data is sent. This is one way of estimating it. But there must be a better way.
Accepted solution gives me following output:
$ ./git-commit-sizes
1494 40eb8832156be81711f3816f04031cf3b8ef16b0 2
0 fbfb9f4c1f7ae403b9d8b4e194e384c6c41283ad 2
1961638 35e59833bad00edff2c5e8600eb4e62251606556 23
0 49cffee125318113d5dbe6f81e4ce12dcc07263d 2
Each line represents one commit, giving three information:
bytes used, sha1 name, files changed
Best Answer
Here is a perl script to determine the size of each Git commit:
The source is here, I have added one modification:
Start the script in your git repository.
My example: