$ git push -u origin master
Counting objects: 321523, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (85111/85111), done.
error: RPC fai
Well, this is caused by some bad network status or some large files included in your commit. In my case, I have tried after some mins, it worked.
So I suggest you should do push several times in some intervals, or increase buffer size and then try to push again?
git config --global http.postBuffer 15728640