第 3 節
Advanced Tools
0瀏覽次數0訪問次數--跳出率--平均停留
Batch import repositories via VCS
- Install
# debian系
sudo apt install python3-vcstool
# rhel系
sudo dnf install python3-vcstool
# pip3安装
pip3 install vcstool
- File format
Files with the extension .repos or .yaml must follow the YAML format, otherwise an error will occur.
Here is the translation of the provided Simplified Chinese Markdown fragment into natural American English:
As follows,
repositories: is the main tag
ros_ws is the name of the folder where you should place the files from the repository after cloning it.
The type is the repository management type, typically git.
The URL is the repository address.
version is a branch name
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
Here is a general example:
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
- How to use?
Place the yaml file in a folder where you want to store a large number of repositories, then enter the following command:
vcs import < myrepos.yaml

As shown in the figure below, the operation was successful.

Github proxy
Set up a blog
Build your own blog using GitHub.