I've had the following issue for the past few days, and it's beginning to really annoy me.
I had a repository with code for one of my classes I was trying to upload to GitHub.
When I first tried, it detected that I had the course textbook, which was over 100 MB in there, which didn't allow me to push to the new repository.
After that, I proceeded to work in the directory, and one of my output files was too large. Today I tried tackling the issue again, and consulted this thread and the help pages, to which I was able to successfully remove both of the files, however, after I run the commit and push commands again, they still detect the files (which are completely deleted from my computer!)