I'm trying to fetch a remote repository over https but sadly it timeouts too soon. $ git fetch -v upstream POST git-upload-pack (gzip 1148 to 641 bytes) POST git-upload-pack (gzip 1148 to 644 bytes) POST git-upload-pack (gzip 1948 to 1038 bytes) POST git-upload-pack (gzip 3548 to 1845 bytes) POST git-upload-pack (gzip 6748 to 3431 bytes) POST git-upload-pack (gzip 13148 to 6659 bytes) POST git-upload-pack (gzip 25948 to 13084 bytes) POST git-upload-pack (gzip 51548 to 25997 bytes) POST git-upload-pack (gzip 102748 to 51375 bytes) POST git-upload-pack (gzip 205148 to 101973 bytes) POST git-upload-pack (gzip 409948 to 203200 bytes) POST git-upload-pack (gzip 82248 to 41185 bytes) POST git-upload-pack (gzip 90448 to 45257 bytes) POST git-upload-pack (gzip 99448 to 49719 bytes) POST git-upload-pack (gzip 109348 to 54623 bytes) POST git-upload-pack (gzip 120248 to 59937 bytes) POST git-upload-pack (gzip 132248 to 65839 bytes) POST git-upload-pack (gzip 145448 to 72450 bytes) POST git-upload-pack (gzip 159948 to 79682 bytes) POST git-upload-pack (gzip 175898 to 87436 bytes) POST git-upload-pack (gzip 193448 to 96171 bytes) POST git-upload-pack (gzip 212748 to 105783 bytes) POST git-upload-pack (gzip 233998 to 116207 bytes) POST git-upload-pack (gzip 257398 to 127793 bytes) POST git-upload-pack (gzip 283098 to 140511 bytes) POST git-upload-pack (gzip 311348 to 154447 bytes) POST git-upload-pack (gzip 342448 to 169815 bytes) POST git-upload-pack (gzip 376648 to 186850 bytes) POST git-upload-pack (gzip 414298 to 205408 bytes) POST git-upload-pack (gzip 455698 to 225879 bytes) POST git-upload-pack (gzip 501248 to 248389 bytes) POST git-upload-pack (gzip 551298 to 273131 bytes) POST git-upload-pack (gzip 606398 to 300334 bytes) POST git-upload-pack (gzip 666998 to 330414 bytes) POST git-upload-pack (gzip 733698 to 363387 bytes) POST git-upload-pack (gzip 807048 to 399647 bytes) POST git-upload-pack (gzip 689453 to 341449 bytes) error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 Gateway Time-out fatal: The remote end hung up unexpectedly Is there some way to fetch partially by smaller chunks and then repeat that again till everything is fetched? Thanks!