git clone --depth=1时的一些问题

当项目过大时,git clone时会出现error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 Gateway Time-out的问题,如下图 解决方法很简单,在git clone时加上--depth=1即可解决 depth…