Skip to content

Instantly share code, notes, and snippets.

@antfu
Created July 16, 2020 03:03
Show Gist options
  • Select an option

  • Save antfu/93b9f7b8b1044a0495052bbde227e9dc to your computer and use it in GitHub Desktop.

Select an option

Save antfu/93b9f7b8b1044a0495052bbde227e9dc to your computer and use it in GitHub Desktop.

Revisions

  1. antfu created this gist Jul 16, 2020.
    1 change: 1 addition & 0 deletions git.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch example.js'