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.

  • object not properly sorted
  • How do I compress multiple merges into a single merge?
  • Git Bash can't change directory to documents folder
  • Squashing commits after they are pushed
  • Jenkins + Git Publisher - How to push back to {GIT_BRANCH}?
  • Keeping repositories in sync without being able to push and pull commits
  • 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 tag at the end of build on Visual Studio Online (Build vNext, hosted pool)
  • git repository clone failed. Connection Reset
  • Check if directory is git repository (without having to cd into it)
  • How to disable git push when there are TODOs in code?
  • No releases in github when using git flow release
  • How do I configure remote refs for git + capistrano 3 in ROR deployment?
  • 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.