Gitsod 是一个专门用于加速 GitHub 克隆和下载的命令行小工具,对 Linux 系统有很好的支持,安装和使用都非常简单 。
1、打开终端,直接执行以下命令即可完成安装 :
bash
curl -fsSL https://gitee.com/idiomeo/gitsod/raw/master/install/linux.sh | bash
2、配置
# 1. 手动创建配置文件目录并设置权限
bash
sudo touch /usr/local/bin/config.json
sudo chmod 666 /usr/local/bin/config.json
# 2. 运行更新命令获取配置
bash
gitsod update
3、克隆
bash
# 使用 gitsod 克隆(注意:不要加 https:// 前缀)
gitsod clone github.com/ros2/cartographer_ros