Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vishin-pavel/3ca996e8bbd5eec2af2d71d030ec5c29 to your computer and use it in GitHub Desktop.
Save vishin-pavel/3ca996e8bbd5eec2af2d71d030ec5c29 to your computer and use it in GitHub Desktop.
clear ignored files
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch <myfile>' \
--prune-empty --tag-name-filter cat -- --all
git push origin --force --all
git push origin --force --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment