Do you know if there is a way to list the space usage of a git repository per branch ? (like df or du would)
By “the space usage” for a branch I mean “the space used by the commits which are not yet shared accross other branches of the repository”.
As it seems that nothing like that already exists, here is a Ruby script I did for that.
With that one I was able to see that in my 2Mo git repository, I’d got one useless branch which took me 1Mo of blobs not shared with any other branches.