Gitlab/Github所有项目clone到本地

有两个神器。

一个是gitlabber,列出Gitlab服务器的所有项目,并以树状结构展示:https://github.com/ezbz/gitlabber

安装:pip install gitlabber

使用:gitlabber -t <personal access token> -u <gitlab url>

另外一个是ghorg,把Gitlab服务器所有的项目克隆到本地:https://github.com/gabrie30/ghorg

安装:scoop install ghorg

配置:需要配置一个conf.yaml文件

使用:ghorg clone 项目 –base-url=http://192.168.1.23 –scm=gitlab –token=自己的token –preserve-dir

留下评论