Is there a way to make git over http timeout?

前端 未结 3 1237
感动是毒
感动是毒 2020-12-16 13:09

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 bas

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-16 13:58

    Add this to .gitconfig ...

    [http]
    lowSpeedLimit = 1000
    lowSpeedTime = 20
    

    lowSpeedLimit is bytes per second

    I call it the Codeplex clause.

提交回复
热议问题