开发者

Git Reverting a big PUSHed file

开发者 https://www.devze.com 2023-01-09 10:38 出处:网络
I accidentally added (git add *) a big file (200+ MB) to a git repository. I commit the changes and pushed it.

I accidentally added (git add *) a big file (200+ MB) to a git repository. I commit the changes and pushed it.

When I tried to pull changes on some other copy, it was taking too long. I canceled the pull, removed the file (git rm file), commit, and pushed again. But it's still taking too long to pul开发者_运维问答ling on other working copy.

So, how to remove it completely from the main repo?


The object is still in the repo, and the remotes are trying to download this object when they pull.

This recipe at github should help remove the object from the repo's history.

0

精彩评论

暂无评论...
验证码 换一张
取 消