I try to follow the steps here Remove large .pack file created by git however it does not work for me and I am unable to add comments to show my problem I have.
So here is my case and steps:
in my folder .git\objects\pack I have file pack-5b4989a1eaffd866f584f203b9fc4dcf27168727.pack that is 32 MB and I am trying to remove this as this is to be my Template repo and can not be more than 10MB so want to clean it.
I run the following steps:
$ git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch pack-30e62ba457c0929c78bb38eb7bdc1de66730c834.pack' --prune-empty
then
git for-each-ref --format='delete %(refname)' refs/original | git update-ref --stdin
git reflog expire --expire=now --all
git gc --aggressive --prune=now
At the end, my file is still there and was not removed. What I am doing wrong? Appreciate any help