Based on the protocol you are using to push to your repo
HTTP
git config --global http.postBuffer 157286400
References:
SSH
Add the following in ~/.ssh/config
file in your linux machine
Host your-gitlab-server.com
ServerAliveInterval 60
ServerAliveCountMax 5
IPQoS throughput
References: