Skip to content

Instantly share code, notes, and snippets.

@umkasanki
Last active May 3, 2020 05:59
Show Gist options
  • Save umkasanki/af92b3038b25b7159dad49830623a85a to your computer and use it in GitHub Desktop.
Save umkasanki/af92b3038b25b7159dad49830623a85a to your computer and use it in GitHub Desktop.
Remove Files completely from git repository history

git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD

git push --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment