Hi!
I am trying to clean .git directory on the master branch. It’s 275Mb
So I run:
git filter-branch --force --index-filter
‘git rm --cached --ignore-unmatch *.pdf’
–prune-empty --tag-name-filter cat – --all
git for-each-ref --format=“delete %(refname)” refs/original | git update-ref --stdin
git reflog expire --expire=now --all
git gc --prune=now
After that the local branch is 25Mb
But after
git push origin --force --all
The .git directory on the remote branch is not less that it was even more!
What do I wrong?
Thanks