Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete file from git history

git filter-branch --force --index-filter "git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA" --prune-empty --tag-name-filter cat -- --all
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #file #git #history
ADD COMMENT
Topic
Name
5+9 =