Skip to content

Instantly share code, notes, and snippets.

@0x4007
Created September 23, 2022 12:54
Show Gist options
  • Save 0x4007/7ca87f6d48fc1fa26fe4a099e28f9c60 to your computer and use it in GitHub Desktop.
Save 0x4007/7ca87f6d48fc1fa26fe4a099e28f9c60 to your computer and use it in GitHub Desktop.
Rip a file out of git history
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch *.sql'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment