git filter-branch -f --prune-empty --index-filter \
"git rm -rf --cached --ignore-unmatch *test.go" \
--tag-name-filter cat -- --all
git reflog expire --verbose --expire=0 --all
git gc --prune=0
git push -f origin master
--index-filter 过滤需要删除的记录
网友评论