Git rm from history

By CK. Date: . Last updated: .

Remove a file from git history.

git filter-branch --index-filter "git rm --cached --ignore-unmatch FILE_TO_DELETE" HEAD

git update-ref -d refs/original/refs/heads/master

Tech

git

rsync