Can't git push from local to remote heroku server

I keep getting this error on all my local projects.

Enumerating objects: 25479, done.
Counting objects: 100% (25479/25479), done.
Delta compression using up to 4 threads
Compressing objects: 100% (16101/16101), done.
Writing objects: 100% (25479/25479), 37.11 MiB | 44.81 MiB/s, done.
Total 25479 (delta 9287), reused 22806 (delta 8381), pack-reused 0
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
fatal: the remote end hung up unexpectedly
Everything up-to-date

I have tried the following and it has been unsuccessful:

$ git config --global http.postBuffer 157286400

started repo from scratch.

removed previous all the history of commits

Please are there any other ways I can get this to work?

Thanks in advance.

I’m not entirely certain why you would be running into this issue and since the error is occurring on Heroku, we wouldn’t be able to debug this. I’d recommend contacting Heroku Support for assistance with this problem.

My apologies for not being able to help more.