Git pull fatal: Out of memory, malloc failed

前端 未结 4 2096
半阙折子戏
半阙折子戏 2021-02-04 13:11

I\'ve a repo on https://bitbucket.org/

Few days ago by a mistake big number of image files were pushed in the repo. then files were deleted via another push. after that

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 14:11

    If you are the only one using this repo, you can follow the git filter-branch option described in "How to purge a huge file from commits history in Git?"

    The simpler option is cloning the repo to an old commit, and force push it, as described in "git-filter-branch to delete large file".

    Either one would force any collaborator to reset his/her own local repo to the new state you are publishing. Again, if you are the only collaborator, it isn't an issue.

提交回复
热议问题