Git error error: File: 363cf2048e6634c6eae3fdf09119a1578e4e062e 115.44 MB, exceeds 100.00 MB. Solved

  1. When submitting git push, error: File: 363cf2048e6634c6eae3fdf09119a1578e4e062e 115.44 MB, exceeds 100.00 MB. The following picture
    insert image description here
    means that 363cf2048e6634c6eae3fdf09119a1578e4e062ethe commit file exceeds 100MB, how to solve it?
  2. Solution, follow the prompts to enter
    insert image description here
// 找出该记录对应的文件
git rev-list --objects --all | grep 363cf2048e6634c6eae3fdf09119a1578e4e062e

If an error is reported, execute this directly

// 列出目前Git仓库中的所有文件
git rev-list --objects --all
  1. Delete large files in commit
git filter-branch --force --tree-filter 'rm -f -r "填写要删除的文件路径"' -- --all

Find the relatively large file you are looking at in the file, copy its path and fill in,文件路径如下,复制就好
insert image description here

Execute the command and wait for success. This is enough.
insert image description here
After the deletion is successful, git pushit can be pushed after execution.

Guess you like

Origin blog.csdn.net/qq_38188228/article/details/128634353