Using GIT for backup. How to permanently remove deleted files from old revisions?

Solution 1:

Use git filter-branch. An example from the manpage:

git filter-branch --index-filter 'git rm --cached --ignore-unmatch filename' HEAD