Skip to content

Instantly share code, notes, and snippets.

View a-szotyori's full-sized avatar

Alpár Szotyori a-szotyori

  • Gini GmbH
  • Munich
View GitHub Profile
@a-szotyori
a-szotyori / gist:4324f117c0e70d3adaf036d125698765
Created December 21, 2016 15:12
Delete text from files in the git history
bfg -rt expressions_file
git reflog expire --expire=now --all && git gc --prune=now --aggressive
Where expression_file contains:
Match expressions should be listed in the file, one expression per line - by default,
each expression is treated as a literal, but 'regex:' & 'glob:' prefixes are supported,
with '==>' to specify a replacement string other than the default of '***REMOVED***'.