Skip to content

Instantly share code, notes, and snippets.

@wotori
Created March 30, 2022 09:41
Show Gist options
  • Save wotori/69fce6695ebbc94f6d5ab17d7b5b5015 to your computer and use it in GitHub Desktop.
Save wotori/69fce6695ebbc94f6d5ab17d7b5b5015 to your computer and use it in GitHub Desktop.
delete file from git
git filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch path_to_file' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment