Skip to content

Instantly share code, notes, and snippets.

View OsmanMutlu's full-sized avatar

Osman Mutlu OsmanMutlu

  • Koç University
  • Istanbul
View GitHub Profile
@OsmanMutlu
OsmanMutlu / gist:ce4165ad143264d18a2cf9bac112a18a
Created October 25, 2019 15:36 — forked from wrburgess/gist:3711050
Permanently remove file from Git history

Reference

Remove sensitive files from Git/Github

In Terminal

git filter-branch --index-filter 'git rm --cached --ignore-unmatch [file path/name]' --prune-empty --tag-name-filter cat -- --all

Example: