Skip to content

Instantly share code, notes, and snippets.

@bindiego
Created April 13, 2021 02:27
remove git history
#!/bin/bash
git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch <Path to File>" HEAD
git push --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment