I recently split a git repo...
Project
ProjectA
ProjectB
ProjectC
...into 3 repos...
ProjectA
ProjectB
ProjectC
...using the following guide:
Detach (move) subdirectory into separate Git repository
The size of the original repo (.git directory) was 3.7GB. The project contains a lot of .psd files.
The problem is that one of the new repos (ProjectC) is now 5.9GB (.git folder). Clearly there was some compression and/or diffing that was happening that is no longer happening.
I tried repacking and compressing using:
git repack -a -d --depth=250 --window=250
Based on information found on this page:
http://metalinguist.wordpress.com/2007/12/06/the-woes-of-git-gc-aggressive-and-how-git-deltas-work/
The size of the repo did not change. Is there a way to get the repo to completely re-compress and re-diff everything? Am I just doing something wrong?
The three original projects didn't share any files, so I doubt there was much diff gain from being able to diff across three projects vs one.
I'm not short of disk space, so this is largely just an educational exercise... plus it's driving me nuts.