Skip to content

Instantly share code, notes, and snippets.

@jdye64
Created July 21, 2016 12:07
Show Gist options
  • Save jdye64/2d7b2d796ae033026afb7e8261b879eb to your computer and use it in GitHub Desktop.
Save jdye64/2d7b2d796ae033026afb7e8261b879eb to your computer and use it in GitHub Desktop.
Deletes a file completely from the git history allowed you to remove large files that cannot be pushed to remote git repo
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch <file/dir>' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment