Environment :
Windows 10
I wanted to push some files on my remote master github repository. There was an issue with a file which is too large.
So I removed it with the command:
git rm modules/db.db
I made a commit and when I tried to push again my local branch to the master, I get again the same error message:
C:\Users\gauth\Documents\github\abc>git push origin master
Enumerating objects: 263, done.
Counting objects: 100% (263/263), done.
Delta compression using up to 6 threads
Compressing objects: 100% (262/262), done.
Writing objects: 100% (263/263), 49.93 MiB | 6.17 MiB/s, done.
Total 263 (delta 75), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (75/75), done.
remote: error: Trace: 68110557c386982431ba3a2ec8e09d4c9ee8400e835d0490d29c096b851007e1
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File modules/db.db is 144.78 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
To https://github.com/abc/abc.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/abc/abc.git'
I don't understand why git doesn't take this removal! Why does it still want to upload a removed file? Can anyone help me, please?