I encountered many files before that I wanted to compress, but then I forgot to delete the compressed package. Before I uploaded git to the remote warehouse, I kept getting errors, as follows:
Solution:
Find the third error in the Git error message. After getting the File, know the content before is, and enter it into the following command.
Use the command as follows:
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch 这里换成自己的报错" --prune-empty --tag-name-filter cat -- --all
Then use the push code and upload normally.