git remote: Please remove the file from history and try again.
阿新 • • 發佈:2021-01-28
錯誤提示:
remote: Powered by GITEE.COM [GNK-5.0]
remote: error: File: 03a339da9645238a80724374c5e7238ef30e7d7f 182.49 MB, exceeds 100.00 MB.
remote: Use command below to see the filename:
remote: git rev-list --objects --all | grep 03a339da9645238a80724374c5e7238ef30e7d7f
remote: Please remove the file from history and try again. (https://gitee.com/help/articles/4232)
To
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ' [email protected]:liuande/android_ad.git'
可以按照提示刪除這個檔案03a339da9645238a80724374c5e7238ef30e7d7f
windows電腦是隻想那個不了這個命令列的
但是windows可以通過一款軟體叫cmder
cmder 可以新建一個視窗 進入linux 視窗模式 (bash:bash) 來執行 這樣可以拿到檔名稱。
使用命令徹底從git刪除
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch java_pid22272.hprof" --prune-empty --tag-name-filter cat -- --all
再次提交程式碼
gitpush