error: RPC failed; result=22, HTTP code = 422

[root@ibt59 bin]# git clone  --depth=1 https://git.chainmaker.org.cn/chainmaker/chainmaker-oracle
正克隆到 'chainmaker-oracle'...
error: RPC failed; result=22, HTTP code = 422
fatal: The remote end hung up unexpectedly

解决方法:

将.git放在url的末尾

[root@ibt59 ~]# git clone  --depth=1 https://git.chainmaker.org.cn/chainmaker/chainmaker-oracle.git
正克隆到 'chainmaker-oracle'...
remote: Enumerating objects: 238, done.
remote: Counting objects: 100% (238/238), done.
remote: Compressing objects: 100% (189/189), done.
remote: Total 238 (delta 43), reused 161 (delta 31), pack-reused 0
接收对象中: 100% (238/238), 7.07 MiB | 1.66 MiB/s, done.
处理 delta 中: 100% (43/43), done.

你可能感兴趣的:(CentOs,rpc,git,网络协议)