Skip to content

Instantly share code, notes, and snippets.

@trevorgreenleaf
Created December 19, 2017 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save trevorgreenleaf/aacffbd29fa8e299fd40194be66ad008 to your computer and use it in GitHub Desktop.
Save trevorgreenleaf/aacffbd29fa8e299fd40194be66ad008 to your computer and use it in GitHub Desktop.
Remove large file accidentally committed to git
git filter-branch --tree-filter 'rm -rf path/to/your/file' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment