第 3 節
高級工具
0瀏覽次數0訪問次數--跳出率--平均停留
vcs批量導入倉庫
- 安裝
# debian系
sudo apt install python3-vcstool
# rhel系
sudo dnf install python3-vcstool
# pip3安装
pip3 install vcstool
- 文件格式
文件擴展名爲.repos或者.yaml,必須滿足yaml格式,否則會報錯。
如下,
repositories:是總標籤
ros_ws是克隆完這個倉庫,要把倉庫裏的文件放在哪一個文件夾的文件夾的名字。
type是倉庫管理的類型,一般爲git.
url是倉庫地址
version是分支名
repositories:
ros_ws:
type: git
url: https://github.com/tungchiahui/ROS_WS.git
version: main
oepncv_projects:
type: git
url: https://github.com/tungchiahui/OpenCV_Projects.git
version: main
以下是一個總示例:
repositories:
tungchiahui:
type: git
url: https://github.com/tungchiahui/tungchiahui.git
version: main
ros_ws:
type: git
url: https://github.com/tungchiahui/ROS_WS.git
version: main
oepncv_projects:
type: git
url: https://github.com/tungchiahui/OpenCV_Projects.git
version: main
stm32_projetcts:
type: git
url: https://github.com/tungchiahui/STM32_Projects.git
version: main
mdk6_template:
type: git
url: https://github.com/tungchiahui/CubeMX_MDK5to6_Template.git
version: master
serial_pack:
type: git
url: https://github.com/tungchiahui/Serial_Pack.git
version: main
ros-docker:
type: git
url: https://github.com/tungchiahui/ros-docker.git
version: main
CyberRobotROS:
type: git
url: https://github.com/CyberNaviRobot/CyberRobot_ROS2_Jazzy_WS.git
version: main
CyberRobotMCU:
type: git
url: https://github.com/CyberNaviRobot/STM32_FreeRTOS_MainController.git
version: main
- 如何使用?
把yaml文件放在某個你要存放大量倉庫的文件夾下,敲入下方命令
vcs import < myrepos.yaml

如下圖,成功

Github代理
搭建博客
使用github搭建自己的博客。