git config --global http.proxy http://user:password@http://10.10.10.10:8080
特殊字符要url编码,例如!, %21
git config --get --global http.proxy
git config --global (或 --local) --unset http.proxy
git clone https://github.com/google/leveldb.git
替换为
git clone https://github.com.cnpmjs.org/google/leveldb.git
git clone --recurse-submodules https://github.com.cnpmjs.org/google/leveldb.git --depth=1
子模块下载不了,ctrl-c
vi leveldb/.gitmodules 更新地址
vi .git/config 中对应submodule的条目更新
cd leveldb
git submodule update