The following command is treat to be the nuclear weapon in Git. It can be used to remove files from history.
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch tmp/*' \
--prune-empty --tag-name-filter cat -- --all
Please change tmp/*
in the command line to any file patterns you need.
No comments:
Post a Comment