My current old repo has many large files which impacts the code sharing efficiency and I'd like to maintain a cleaned version of this old repo by deleting those large files. Meanwhile, I still want to keep the files in the old repo as backup.
So I go through this way :
git branch newgit rmthe large filesgit pushbranchnewto new remotenew-remote origin
However, I checked the counting objects and writing objects before and after the deletion in the push operation, and found that the counting objects did not change. So it seems the new-remote origin will still has similar repo size. Why would the repo size not changed and what's a better strategy to do this ?