Git error, need to remove large file

前端 未结 8 626
北恋
北恋 2021-02-01 05:37

I am getting this error when I try to push to git and I have no idea how to fix it.

Counting objects: 1239, done.
Delta compression using up to 4 threads.
Compre         


        
8条回答
  •  别那么骄傲
    2021-02-01 05:53

    I faced the same issue recently, you can actually just filter the branch for specific file and remove it -

    git filter-branch --tree-filter 'rm -rf path/to/your/file' HEAD
    

提交回复
热议问题