Trying to switch to Github from Bitbucket, getting a file size error

I am trying to migrate from bitbucket to github. What I did was remove the bitpack from the remote computer and add my github account instead. Then I tried git push -u origin master , but got a large file detected error, and then this exceeds Github file size limit of 100MB .

I know which file creates the problem, and I deleted it a few commits back, but since it is still in the previous compilers it still creates problems.

How can i fix this?

+5
source share
1 answer

GitHub sets a hard limit on the size of individual files :

GitHub warns you when you try to add a file larger than 50 MB. We will reject those containing files larger than 100 MB.

If any commit in your repo contains this file, GitHub will not allow you to click on the remote repository hosted on their servers.

Your options?

  • Stay on the beat bag, or
  • rewrite the history of your repo (using, for example, git filter-branch , or Roberto Tyley BFG Repo-Cleaner ) so that any repo file does not contain a file larger than 100 MB.
+3
source

Source: https://habr.com/ru/post/1200691/


All Articles