title: Is there a way to make git over http timeout?
body: <p>I'm having a script running git clone/pull automatically (this is actually happening inside jenkins CI, but my question is more general). The remote git server is HTTPS based. The machine with the git client has a flaky DSL internet connection, so it sometimes reconnects and changes IP address, losing all its existing connections. When the connection fails while the git client is running, the client never succeeds but it doesn't fail with a timeout either, so my script hangs up.</p>
  
  <p>I'd like to set up the client so it timeouts after some period (so the script can retry, or log a failure, or take any other action). But I didn't find any timeout option in the git-config manpage. I found <a href="https://stackoverflow.com/questions/3758703/forcing-a-timeout-in-git-push-pull">a related question</a> but it's only for SSH connections. Do you know if there's an alternative for http servers?</p>