Skip to content

Instantly share code, notes, and snippets.

@albertlieyingadrian
Created August 11, 2022 07:29
Show Gist options
  • Select an option

  • Save albertlieyingadrian/395061d59329d55ee9ff0e284cba87c1 to your computer and use it in GitHub Desktop.

Select an option

Save albertlieyingadrian/395061d59329d55ee9ff0e284cba87c1 to your computer and use it in GitHub Desktop.

Revisions

  1. albertlieyingadrian created this gist Aug 11, 2022.
    1 change: 1 addition & 0 deletions git_remove_file_from-_history
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch <path to the file or directory>' --prune-empty --tag-name-filter cat -- --all