Error: RPC failed; HTTP 504 curl 22 the requested URL returned error: 504 gateway time out

The following error is reported when using git clone Code:

Cloning into ‘FanHeIOSV2’…

error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 Gateway Time-out

fatal: The remote end hung up unexpectedly

The solution is to add — depath = 1:1

git clone –depth=1 https://git.oschina.net/xxxxxx.git  

Read More: