Dale Worley於 2014年12月29日星期一UTC+8上午4時14分18秒寫道：
> > I am pretty sure most of the files are the same by git diff.
> Does that mean that you have actually done a git-diff and examined the
> total size of the files whose content has changed?
I compare with both source tree with diff tool. Most files are the same.
I did not use git diff because there are too many files.
But when git add -A;git commit is don, most files are "added".
This means git think most files are treated as new.
> > There is only small parts of the code base differ.
> > Just like you said, I expect only slight size increase with the new
> > branch pushed.
> > However, the repository doubled the size from 4G to 8G. Just as twice
> > the original size.
> Have you actually enumerated where the space is being consumed?
I have limited disk space. What happens is my disk quota is full.
We also have gitblit installed on our Gerrit, which tell us the
repository size is double.
> One way is to execute "git ls-tree --full-tree -r -l [branch]" for each
> branch, then use "comm" to find the lines for new/different files in the
> second branch. Total the 4th fields of those lines and see how much
> space they occupy (uncompressed).
I will try your command but it takes some time because the repository
is quit large.
Thank you for the help.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.