Skip to content

Instantly share code, notes, and snippets.

@Galarius
Created October 28, 2017 08:23
Show Gist options
  • Save Galarius/5f3a029298e11bdd6c02161996cef9ce to your computer and use it in GitHub Desktop.
Save Galarius/5f3a029298e11bdd6c02161996cef9ce to your computer and use it in GitHub Desktop.
git snippets
git filter-branch --index-filter \
'git rm --cached --ignore-unmatch <file>'
That will remove <file> from all commits, starting from the root commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment