git push error due to non-existent large file

I keep getting the same result when trying to push to git:

Counting objects: 78, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (67/67), done.
Writing objects: 100% (71/71), 36.29 MiB | 637.00 KiB/s, done.
Total 71 (delta 39), reused 0 (delta 0)
remote: error: GH001: Large files detected.
remote: error: Trace: 7e446266168df8617c74b6a319ec4538
remote: error: See for more information.
remote: error: File lecture_2_github_io_numpy_pandas/data/cup98LRN.txt is 111.74 MB; this exceeds GitHub's file size limit of 100 MB
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ''

The thing is, that txt file does not exist any more. I made changes to the ipython notebook to have that text file removed. Saved the notebook. Added the changes to git. Committed the changes. Then try to do a push to git, but it does not want to work.

  • copy a git repository without revisions (without .git and .gitingore) from a remote server
  • Is it safe to run other git commands while git push is running?
  • How can I convert the output of `git diff --color-words` to HTML?
  • Bash shell is not taking the arguments in a way I would expect?
  • eclipse: “re-indexing repository workspace” or “Computing Git status for repository workspace”
  • git submodule code review with main
  • I can’t use the:

    git rm --cached 'file' 

    Because that file does not exist any more. I have no clue what do. Any help would be much appreciated.

  • Git clone with password @
  • git central repository and Team
  • Python: How to install a third-party package and make it available to rest of team
  • Can't pull or push code from bitbucket
  • Change the commit author of commits starting with a pattern (in message)
  • Visual Studio 2013 coexisting Ankh SVN and Git
  • One Solution collect form web for “git push error due to non-existent large file”

    GitHub provided me with this step-by-step documentation and it worked for me:

    Basically, needed to do a more thorough cleaning of past commits.

    Git Baby is a git and github fan, let's start git clone.