I tried every solution mentioned here but nothing worked. But what worked for me was that I did the following git configurations Fire these commands from project terminal
git config --global http.lowSpeedLimit 60
git config --global http.lowSpeedTime 99999999
git config --global http.postBuffer 524288000
if I list my git config list it looks like below
git config --global --list
I hope this will work for you as well.