Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to remove sensitive data from github history

git filter-branch --index-filter 
'git update-index --remove PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA' <introduction-revision-sha1>..HEAD
git push --force --verbose --dry-run
git push --force
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #sensitive #data #github #history
ADD COMMENT
Topic
Name
2+8 =