Execute the git gc 及 git prune --expire command in that repository to remove git objects that are no longer referenced. See: Git - Maintenance and Data Recovery
Sorry, I misunderstood.
Regardless of whether it is modified or deleted, the record is still there in case you want to restore it, so the size will not shrink after you delete it.
You need to delete the record of this branch
Execute the
git gc
及git prune --expire
command in that repository to remove git objects that are no longer referenced. See: Git - Maintenance and Data RecoverySorry, I misunderstood.
Regardless of whether it is modified or deleted, the record is still there in case you want to restore it, so the size will not shrink after you delete it.
You need to delete the record of this branch
See the git rebase command for details.