Skip to content

Instantly share code, notes, and snippets.

@jerinisready
Last active May 21, 2018 15:49
Show Gist options
  • Select an option

  • Save jerinisready/3e41b0b76182bc0d649011120d58f421 to your computer and use it in GitHub Desktop.

Select an option

Save jerinisready/3e41b0b76182bc0d649011120d58f421 to your computer and use it in GitHub Desktop.
This is how to remove any large files form git history! This is adviced only after proper backup of your repository!
git filter-branch --index-filter 'git rm --cached --ignore-unmatch <file_path_or_pattern>' --tag-name-filter cat -- --all
git push origin --force --all
@jerinisready

Copy link
Copy Markdown
Author

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