In my case, I had a feature branch that had a large file introduced. I'll call it feature-branch-1 (originally branched from master). I was unable to push this branch up to GitHub due to the large file in the history even though it had been deleted.
This was a very simple solution in my case where the large file was introduced in a feature branch that hadn't yet been merged into the primary master branch.