How can I stop Git from trying to pop a nonexistent file?

When I try to push I get a fatal error because git is trying to include a file that is too large for GitHub. git rm file fails because the file does not exist (it existed, but no longer works). git seems to refuse to acknowledge that the file is gone.

What should I do?


To get information, an error message appears:

 remote: error: GH001: Large files detected. remote: error: Trace: dbbfb79f51f133c90dfd58730a4ab624 remote: error: See http://git.io/iEPt8g for more information. remote: error: File [filename] is 385.65 MB; this exceeds GitHub file size limit of 100 MB To https://github.com/[---].git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://github.com/[---].git' 

If the above, it seems, it is impossible to achieve, as it seems, instructions on how to simply burn all the things related to this git and install them from scratch with the code that we saved in the backup directories, would be great. We really don't have time to team up with git anymore ...

+5
source share
1 answer

Run git rm --cached file , even if the file no longer exists. Thus, the file will be deleted from the index.

If you want to completely root out a file from your Git history, you will need a little git filter-branch -fu.

0
source

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


All Articles