Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove file or directory from Git
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch imgs" HEAD
git filter-branch --tree-filter 'rm -fr imgs' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.