This is a follow-up of this question.
Brief background: The size of the remote repository is far larger than the local version which was caused by pushing a lot of .pngs that were later on deleted by rm filename
; this happened on a machine I don't have access to.
My attempts to reduce the size failed, but I was made aware of another thread. I then tried to get rid of all commits that are about images i.e. .png files. I used the following command:
git filter-branch --tree-filter 'rm -f *.png' HEAD
However, I then get the message:
Rewrite 9625aa4ef9368d45b69c605172595322d3da1ea4 (507/507)
WARNING: Ref 'refs/heads/master' is unchanged
and the size of the remote repository is still the same.
How would I use it correctly? There is only one branch, the master branch, in the repository.