Delete File from Git History
- delete file in git repo
- git commit -m 'commit message'
- git push
- run the following commands:
-
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch PATH-TO-FILE" --prune-empty -- --all
git push origin --force --all
No Comments