Git error, need to remove large file

前端 未结 8 628
北恋
北恋 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:54

    git reset --soft HEAD~1

    then exclude the file from the commit.

    Note: Use HEAD~N to go back to N number of previous commits.

    use this , go back a commit ,remove the large file from the commit if you can see it , then re commit and push.

    this should solve the problem

提交回复
热议问题