You are running: git filter-branch –tree-filter 'rm log/*.log' HEAD. If it works for the first few commits then fails with this "Rewrite 3961dbcbd864ef80d308117df7a2e5319cae3f42 (2/146) rm: log/*.log: No such file or directory tree filter failed: rm log/*.log", What does this mean and how do you fix it?