5 4 4 3 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 git 中的文章

centos7安装新版本的git客户端

linux中访问github:参见: https://gitclone.com/ 1 2 3 4 5 6 7 方法一(替换URL) git clone https://gitclone.com/github.com/tendermint/tendermint.git 方法二(设置git参数) git config --global url."https://gitclone.com/".insteadOf https:// git clone https://github.com/tendermint/tendermint.git 方法三(使用cgit客户端) cgit clone https://github.com/tendermint/tendermint.git 安装新版本的git客户端: 使用 https://ius.io/ 源 1 2 3 4 5 6 7 curl -sSL https://setup.ius.io | sh # 查看哪些包提供git这个命令 yum provides git # 这里结果显示最新版本为ius提供……

阅读全文

更新git项目中submodule的命令

之前一直没有注意submodule如何更新的问题,一直以为我clone后submodule就是新的,后来才发现即便我重新clone,submodule也是按照当时提交时候的版本.找了几个小时才找到简单的命令进行更新submodule. git submodule update --recursive --remote --merge --force……

阅读全文