ubuntu git clone速度慢或无法访问的解决方法

使用GitHub Proxy文件代理加速下载服务

git clone https://ghproxy.com/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxx为你原本要git clone的链接

举例ubuntu git clone moveit_turorials

zhe@zhe-System-Product-Name:~/catkin_ws/src$ git clone https://github.com/ros-planning/moveit_tutorials.git -b master
正克隆到 'moveit_tutorials'...
fatal: 无法访问 'https://github.com/ros-planning/moveit_tutorials.git/':GnuTLS recv error (-110): The TLS connection was non-properly terminated.

使用代理加速下载服务后

zhe@zhe-System-Product-Name:~/catkin_ws/src$ git clone https://ghproxy.com/https://github.com/ros-planning/moveit_tutorials.git -b master
正克隆到 'moveit_tutorials'...
remote: Enumerating objects: 5049, done.
remote: Counting objects: 100% (682/682), done.
remote: Compressing objects: 100% (473/473), done.
remote: Total 5049 (delta 245), reused 555 (delta 189), pack-reused 4367
接收对象中: 100% (5049/5049), 76.77 MiB | 92.00 KiB/s, 完成.
处理 delta 中: 100% (2713/2713), 完成.

你可能感兴趣的:(ROS,ubuntu,git,自动驾驶)