报错
(pytorch) PS D:\python项目\深度学习> git push origin master --force
Enumerating objects: 463, done.
Counting objects: 100% (463/463), done.
Delta compression using up to 12 threads
Compressing objects: 100% (460/460), done.
Writing objects: 100% (463/463), 479.10 MiB | 1.70 MiB/s, done.
Total 463 (delta 11), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (11/11), done.
remote: error: File: 90c5365492dea3b3c855b2375f1de8588ac1bda4 162.65 MB, exceeds 100.00 MB.
remote: Use command below to see the filename:
remote: git rev-list --objects --all | grep 90c5365492dea3b3c855b2375f1de8588ac1bda4
remote: Please remove the file from history and try again. (https://gitee.com/help/articles/4232)
To https://gitee.com/xiangfuchuan/introduction-to-deep-learning.git
解决办法
1.在git命令下运行git rev-list --objects --all | grep 90c5365492dea3b3c855b2375f1de8588ac1bda4命令,就可以查看超过100MB的文件夹
2.运行 git filter-branch -f --prune-empty --index-filter ‘git rm -rf --cached --ignore-unmatch 文件名’ --tag-name-filter cat -
- –all
3.重新oush提交即可