[{"data":1,"prerenderedAt":675},["ShallowReactive",2],{"wiki-page-/en-us/wiki/2023-12-29-git-jiao-xue/ch3-gao-ji-gong-ju":3,"wiki-doc-items-/en-us/wiki/2023-12-29-git-jiao-xue/ch3-gao-ji-gong-ju":635,"language-switcher-data-/en-us/wiki/2023-12-29-git-jiao-xue/ch3-gao-ji-gong-ju":659,"wiki-i18n-paths-/en-us/wiki/2023-12-29-git-jiao-xue/ch3-gao-ji-gong-ju":674},{"id":4,"title":5,"body":6,"canonicalPath":616,"chapter":617,"chapterSort":618,"date":619,"description":27,"docI18nKey":620,"docKey":621,"docRoot":622,"docTitle":623,"extension":624,"i18nKey":625,"isBlogPost":626,"isWikiDoc":38,"isWikiIndex":626,"layout":627,"legacyPath":627,"locale":628,"localeSlug":629,"meta":630,"navigation":38,"path":616,"seo":631,"sourcePath":632,"sourceStem":625,"stem":633,"wikiDepth":35,"__hash__":634},"content/_i18n/en-us/wiki/2023-12-29-Git教学/ch3-高级工具.md","Advanced Tools",{"type":7,"value":8,"toc":611},"minimark",[9,14,21,109,114,126,129,132,135,138,141,144,147,197,200,540,545,548,568,574,577,582,586,594,598,601,607],[10,11,13],"h3",{"id":12},"batch-import-repositories-via-vcs","Batch import repositories via VCS",[15,16,17],"ol",{},[18,19,20],"li",{},"Install",[22,23,28],"pre",{"className":24,"code":25,"language":26,"meta":27,"style":27},"language-bash shiki shiki-themes github-light github-dark","\n# debian系\nsudo apt install python3-vcstool\n\n# rhel系\nsudo dnf install python3-vcstool\n\n# pip3安装\npip3 install vcstool\n","bash","",[29,30,31,40,47,64,69,75,87,92,98],"code",{"__ignoreMap":27},[32,33,36],"span",{"class":34,"line":35},"line",1,[32,37,39],{"emptyLinePlaceholder":38},true,"\n",[32,41,43],{"class":34,"line":42},2,[32,44,46],{"class":45},"sJ8bj","# debian系\n",[32,48,50,54,58,61],{"class":34,"line":49},3,[32,51,53],{"class":52},"sScJk","sudo",[32,55,57],{"class":56},"sZZnC"," apt",[32,59,60],{"class":56}," install",[32,62,63],{"class":56}," python3-vcstool\n",[32,65,67],{"class":34,"line":66},4,[32,68,39],{"emptyLinePlaceholder":38},[32,70,72],{"class":34,"line":71},5,[32,73,74],{"class":45},"# rhel系\n",[32,76,78,80,83,85],{"class":34,"line":77},6,[32,79,53],{"class":52},[32,81,82],{"class":56}," dnf",[32,84,60],{"class":56},[32,86,63],{"class":56},[32,88,90],{"class":34,"line":89},7,[32,91,39],{"emptyLinePlaceholder":38},[32,93,95],{"class":34,"line":94},8,[32,96,97],{"class":45},"# pip3安装\n",[32,99,101,104,106],{"class":34,"line":100},9,[32,102,103],{"class":52},"pip3",[32,105,60],{"class":56},[32,107,108],{"class":56}," vcstool\n",[15,110,111],{"start":42},[18,112,113],{},"File format",[115,116,117,118,121,122,125],"p",{},"Files with the extension ",[29,119,120],{},".repos"," or ",[29,123,124],{},".yaml"," must follow the YAML format, otherwise an error will occur.",[115,127,128],{},"Here is the translation of the provided Simplified Chinese Markdown fragment into natural American English:",[115,130,131],{},"As follows,",[115,133,134],{},"repositories: is the main tag",[115,136,137],{},"ros_ws is the name of the folder where you should place the files from the repository after cloning it.",[115,139,140],{},"The type is the repository management type, typically git.",[115,142,143],{},"The URL is the repository address.",[115,145,146],{},"version is a branch name",[22,148,152],{"className":149,"code":150,"language":151,"meta":27,"style":27},"language-YAML shiki shiki-themes github-light github-dark","repositories:\n  ros_ws:\n    type: git\n    url: https://github.com/tungchiahui/ROS_WS.git\n    version: main\n  oepncv_projects:\n    type: git\n    url: https://github.com/tungchiahui/OpenCV_Projects.git\n    version: main\n","YAML",[29,153,154,159,164,169,174,179,184,188,193],{"__ignoreMap":27},[32,155,156],{"class":34,"line":35},[32,157,158],{},"repositories:\n",[32,160,161],{"class":34,"line":42},[32,162,163],{},"  ros_ws:\n",[32,165,166],{"class":34,"line":49},[32,167,168],{},"    type: git\n",[32,170,171],{"class":34,"line":66},[32,172,173],{},"    url: https://github.com/tungchiahui/ROS_WS.git\n",[32,175,176],{"class":34,"line":71},[32,177,178],{},"    version: main\n",[32,180,181],{"class":34,"line":77},[32,182,183],{},"  oepncv_projects:\n",[32,185,186],{"class":34,"line":89},[32,187,168],{},[32,189,190],{"class":34,"line":94},[32,191,192],{},"    url: https://github.com/tungchiahui/OpenCV_Projects.git\n",[32,194,195],{"class":34,"line":100},[32,196,178],{},[115,198,199],{},"Here is a general example:",[22,201,205],{"className":202,"code":203,"language":204,"meta":27,"style":27},"language-yaml shiki shiki-themes github-light github-dark","repositories:\n  tungchiahui:\n    type: git\n    url: https://github.com/tungchiahui/tungchiahui.git\n    version: main\n  ros_ws:\n    type: git\n    url: https://github.com/tungchiahui/ROS_WS.git\n    version: main\n  oepncv_projects:\n    type: git\n    url: https://github.com/tungchiahui/OpenCV_Projects.git\n    version: main\n  stm32_projetcts:\n    type: git\n    url: https://github.com/tungchiahui/STM32_Projects.git\n    version: main\n  mdk6_template:\n    type: git\n    url: https://github.com/tungchiahui/CubeMX_MDK5to6_Template.git\n    version: master\n  serial_pack:\n    type: git\n    url: https://github.com/tungchiahui/Serial_Pack.git\n    version: main\n  ros-docker:\n    type: git\n    url: https://github.com/tungchiahui/ros-docker.git\n    version: main\n  CyberRobotROS:\n    type: git\n    url: https://github.com/CyberNaviRobot/CyberRobot_ROS2_Jazzy_WS.git\n    version: main\n  CyberRobotMCU:\n    type: git\n    url: https://github.com/CyberNaviRobot/STM32_FreeRTOS_MainController.git\n    version: main\n\n","yaml",[29,206,207,217,224,235,245,255,262,270,279,287,295,304,314,323,331,340,350,359,367,376,386,396,404,413,423,432,440,449,459,468,476,485,495,504,512,521,531],{"__ignoreMap":27},[32,208,209,213],{"class":34,"line":35},[32,210,212],{"class":211},"s9eBZ","repositories",[32,214,216],{"class":215},"sVt8B",":\n",[32,218,219,222],{"class":34,"line":42},[32,220,221],{"class":211},"  tungchiahui",[32,223,216],{"class":215},[32,225,226,229,232],{"class":34,"line":49},[32,227,228],{"class":211},"    type",[32,230,231],{"class":215},": ",[32,233,234],{"class":56},"git\n",[32,236,237,240,242],{"class":34,"line":66},[32,238,239],{"class":211},"    url",[32,241,231],{"class":215},[32,243,244],{"class":56},"https://github.com/tungchiahui/tungchiahui.git\n",[32,246,247,250,252],{"class":34,"line":71},[32,248,249],{"class":211},"    version",[32,251,231],{"class":215},[32,253,254],{"class":56},"main\n",[32,256,257,260],{"class":34,"line":77},[32,258,259],{"class":211},"  ros_ws",[32,261,216],{"class":215},[32,263,264,266,268],{"class":34,"line":89},[32,265,228],{"class":211},[32,267,231],{"class":215},[32,269,234],{"class":56},[32,271,272,274,276],{"class":34,"line":94},[32,273,239],{"class":211},[32,275,231],{"class":215},[32,277,278],{"class":56},"https://github.com/tungchiahui/ROS_WS.git\n",[32,280,281,283,285],{"class":34,"line":100},[32,282,249],{"class":211},[32,284,231],{"class":215},[32,286,254],{"class":56},[32,288,290,293],{"class":34,"line":289},10,[32,291,292],{"class":211},"  oepncv_projects",[32,294,216],{"class":215},[32,296,298,300,302],{"class":34,"line":297},11,[32,299,228],{"class":211},[32,301,231],{"class":215},[32,303,234],{"class":56},[32,305,307,309,311],{"class":34,"line":306},12,[32,308,239],{"class":211},[32,310,231],{"class":215},[32,312,313],{"class":56},"https://github.com/tungchiahui/OpenCV_Projects.git\n",[32,315,317,319,321],{"class":34,"line":316},13,[32,318,249],{"class":211},[32,320,231],{"class":215},[32,322,254],{"class":56},[32,324,326,329],{"class":34,"line":325},14,[32,327,328],{"class":211},"  stm32_projetcts",[32,330,216],{"class":215},[32,332,334,336,338],{"class":34,"line":333},15,[32,335,228],{"class":211},[32,337,231],{"class":215},[32,339,234],{"class":56},[32,341,343,345,347],{"class":34,"line":342},16,[32,344,239],{"class":211},[32,346,231],{"class":215},[32,348,349],{"class":56},"https://github.com/tungchiahui/STM32_Projects.git\n",[32,351,353,355,357],{"class":34,"line":352},17,[32,354,249],{"class":211},[32,356,231],{"class":215},[32,358,254],{"class":56},[32,360,362,365],{"class":34,"line":361},18,[32,363,364],{"class":211},"  mdk6_template",[32,366,216],{"class":215},[32,368,370,372,374],{"class":34,"line":369},19,[32,371,228],{"class":211},[32,373,231],{"class":215},[32,375,234],{"class":56},[32,377,379,381,383],{"class":34,"line":378},20,[32,380,239],{"class":211},[32,382,231],{"class":215},[32,384,385],{"class":56},"https://github.com/tungchiahui/CubeMX_MDK5to6_Template.git\n",[32,387,389,391,393],{"class":34,"line":388},21,[32,390,249],{"class":211},[32,392,231],{"class":215},[32,394,395],{"class":56},"master\n",[32,397,399,402],{"class":34,"line":398},22,[32,400,401],{"class":211},"  serial_pack",[32,403,216],{"class":215},[32,405,407,409,411],{"class":34,"line":406},23,[32,408,228],{"class":211},[32,410,231],{"class":215},[32,412,234],{"class":56},[32,414,416,418,420],{"class":34,"line":415},24,[32,417,239],{"class":211},[32,419,231],{"class":215},[32,421,422],{"class":56},"https://github.com/tungchiahui/Serial_Pack.git\n",[32,424,426,428,430],{"class":34,"line":425},25,[32,427,249],{"class":211},[32,429,231],{"class":215},[32,431,254],{"class":56},[32,433,435,438],{"class":34,"line":434},26,[32,436,437],{"class":211},"  ros-docker",[32,439,216],{"class":215},[32,441,443,445,447],{"class":34,"line":442},27,[32,444,228],{"class":211},[32,446,231],{"class":215},[32,448,234],{"class":56},[32,450,452,454,456],{"class":34,"line":451},28,[32,453,239],{"class":211},[32,455,231],{"class":215},[32,457,458],{"class":56},"https://github.com/tungchiahui/ros-docker.git\n",[32,460,462,464,466],{"class":34,"line":461},29,[32,463,249],{"class":211},[32,465,231],{"class":215},[32,467,254],{"class":56},[32,469,471,474],{"class":34,"line":470},30,[32,472,473],{"class":211},"  CyberRobotROS",[32,475,216],{"class":215},[32,477,479,481,483],{"class":34,"line":478},31,[32,480,228],{"class":211},[32,482,231],{"class":215},[32,484,234],{"class":56},[32,486,488,490,492],{"class":34,"line":487},32,[32,489,239],{"class":211},[32,491,231],{"class":215},[32,493,494],{"class":56},"https://github.com/CyberNaviRobot/CyberRobot_ROS2_Jazzy_WS.git\n",[32,496,498,500,502],{"class":34,"line":497},33,[32,499,249],{"class":211},[32,501,231],{"class":215},[32,503,254],{"class":56},[32,505,507,510],{"class":34,"line":506},34,[32,508,509],{"class":211},"  CyberRobotMCU",[32,511,216],{"class":215},[32,513,515,517,519],{"class":34,"line":514},35,[32,516,228],{"class":211},[32,518,231],{"class":215},[32,520,234],{"class":56},[32,522,524,526,528],{"class":34,"line":523},36,[32,525,239],{"class":211},[32,527,231],{"class":215},[32,529,530],{"class":56},"https://github.com/CyberNaviRobot/STM32_FreeRTOS_MainController.git\n",[32,532,534,536,538],{"class":34,"line":533},37,[32,535,249],{"class":211},[32,537,231],{"class":215},[32,539,254],{"class":56},[15,541,542],{"start":49},[18,543,544],{},"How to use?",[115,546,547],{},"Place the yaml file in a folder where you want to store a large number of repositories, then enter the following command:",[22,549,551],{"className":24,"code":550,"language":26,"meta":27,"style":27},"vcs import \u003C myrepos.yaml\n",[29,552,553],{"__ignoreMap":27},[32,554,555,558,561,565],{"class":34,"line":35},[32,556,557],{"class":52},"vcs",[32,559,560],{"class":56}," import",[32,562,564],{"class":563},"szBVR"," \u003C",[32,566,567],{"class":56}," myrepos.yaml\n",[115,569,570],{},[571,572],"img",{"alt":27,"src":573},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2023/12/29/image87.webp",[115,575,576],{},"As shown in the figure below, the operation was successful.",[115,578,579],{},[571,580],{"alt":27,"src":581},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2023/12/29/image88.webp",[10,583,585],{"id":584},"github-proxy","Github proxy",[115,587,588],{},[589,590,591],"a",{"href":591,"rel":592},"https://ghproxy.link/",[593],"nofollow",[10,595,597],{"id":596},"set-up-a-blog","Set up a blog",[115,599,600],{},"Build your own blog using GitHub.",[115,602,603],{},[589,604,605],{"href":605,"rel":606},"https://www.bilibili.com/video/BV1g68TzPEkh",[593],[608,609,610],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}",{"title":27,"searchDepth":42,"depth":42,"links":612},[613,614,615],{"id":12,"depth":49,"text":13},{"id":584,"depth":49,"text":585},{"id":596,"depth":49,"text":597},"/en-us/wiki/2023-12-29-git-jiao-xue/ch3-gao-ji-gong-ju","3",3000000,"2023-12-29","wiki/2023-12-29-git-jiao-xue","en-us:2023-12-29-git-jiao-xue","/en-us/wiki/2023-12-29-git-jiao-xue","Git教学","md","wiki/2023-12-29-Git教学/ch3-高级工具",false,null,"en-US","en-us",{},{"title":5,"description":27},"/wiki/2023-12-29-git-jiao-xue/ch3-gao-ji-gong-ju","_i18n/en-us/wiki/2023-12-29-Git教学/ch3-高级工具","ZxOIXH77E-6004RU6VqcOGZTwepO6E4rTCcwcAT4glU",[636,642,648,649,655],{"path":637,"stem":638,"title":639,"date":619,"chapter":640,"chapterSort":641,"docKey":621,"docRoot":622,"docTitle":623,"isWikiDoc":38,"isWikiIndex":626},"/en-us/wiki/2023-12-29-git-jiao-xue/ch1-git-jian-jie","_i18n/en-us/wiki/2023-12-29-Git教学/ch1-Git简介","Introduction to Git","1",1000000,{"path":643,"stem":644,"title":645,"date":619,"chapter":646,"chapterSort":647,"docKey":621,"docRoot":622,"docTitle":623,"isWikiDoc":38,"isWikiIndex":626},"/en-us/wiki/2023-12-29-git-jiao-xue/ch2-git-shi-cao","_i18n/en-us/wiki/2023-12-29-Git教学/ch2-Git实操","Git in Practice","2",2000000,{"path":616,"stem":633,"title":5,"date":619,"chapter":617,"chapterSort":618,"docKey":621,"docRoot":622,"docTitle":623,"isWikiDoc":38,"isWikiIndex":626},{"path":650,"stem":651,"title":652,"date":619,"chapter":653,"chapterSort":654,"docKey":621,"docRoot":622,"docTitle":623,"isWikiDoc":38,"isWikiIndex":626},"/en-us/wiki/2023-12-29-git-jiao-xue/ch4-chang-jian-wen-ti","_i18n/en-us/wiki/2023-12-29-Git教学/ch4-常见问题","Frequently Asked Questions","4",4000000,{"path":622,"stem":656,"title":657,"date":619,"chapter":627,"chapterSort":658,"docKey":621,"docRoot":622,"docTitle":623,"isWikiDoc":38,"isWikiIndex":38},"_i18n/en-us/wiki/2023-12-29-Git教学/index","Git tutorial",0,{"variants":660},[661,662,665,668,671],{"path":616,"localeSlug":629,"i18nKey":625},{"path":663,"localeSlug":664,"i18nKey":625},"/zh-hant/wiki/2023-12-29-git-jiao-xue/ch3-gao-ji-gong-ju","zh-hant",{"path":666,"localeSlug":667,"i18nKey":625},"/zh-hk/wiki/2023-12-29-git-jiao-xue/ch3-gao-ji-gong-ju","zh-hk",{"path":669,"localeSlug":670,"i18nKey":625},"/zh-tw/wiki/2023-12-29-git-jiao-xue/ch3-gao-ji-gong-ju","zh-tw",{"path":672,"localeSlug":673,"i18nKey":625},"/zh-cn/wiki/2023-12-29-git-jiao-xue/ch3-gao-ji-gong-ju","zh-cn",[616,632,663,632,666,632,669,632,672,632],1780671808331]