Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to remove sensitive data from github 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
  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
3+9 =