$ 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
Posting the solution that worked for me...
In Short
Just change your network connection and then try again.
The Story
I was also getting this exception on command line (GIT Bash) as well as on TortoiseGIT, when my laptop was connected to Office WiFi. Then I just disconnected my laptop from there and connected it to my SmartPhone's HotSpot. That's it, and error got resolved.
It could be weird for some techies, but no harm in try.