Git history cleanup doesn't seem to have an effect

Posted by eaigner on Stack Overflow See other posts from Stack Overflow or by eaigner
Published on 2010-06-07T21:43:38Z Indexed on 2010/06/08 4:12 UTC
Read the original article Hit count: 268

Filed under:
|

Hi,

i ran the following 2 commands to clean up .pbxuser and .mode1v3 files from my git repository, but afterwards when i e.g. fire up gitx i can still see them in the history.

git filter-branch --tree-filter "git rm -rf --cached --ignore-unmatch *.pbxuser" HEAD
rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressive --prune

What did i misunderstand here? The commands seem to do the job but why is gitx still viewing the diffs in its history?

Regards, Erik

© Stack Overflow or respective owner

Related posts about xcode

Related posts about git