【求助】如何用脚本批量获取github源代码
Tofloor
poster avatar
153******45
deepin
2018-02-06 18:13
Author
本帖最后由 a996535783 于 2018-2-6 10:22 编辑

同一个仓库,不同的项目,用脚本如何获取
比如
https://github.com/linuxdeepin/

https://github.com/linuxdeepin/deepin-deb-installer
https://github.com/linuxdeepin/deepin-manual


Reply Favorite View the author
All Replies
avatar
jingle
deepin
2018-02-06 18:27
#1
本帖最后由 jingle 于 2018-2-6 10:28 编辑

写一个shell  然后文本命名成sh,执行sudo chmod +x 里面加你的项目

如果是全部

git clone https://cr.deepin.io/#/admin/projects/deepin-code-release
Reply View the author
avatar
153******45
deepin
2018-02-06 18:47
#2
https://bbs.deepin.org/post/152990
写一个shell  然后文本命名成sh,执行sudo chmod +x 里面加你的项目

如果是全部

这个知道,有点太麻烦,获取的地址有点多
Reply View the author
avatar
justforlxz
deepin
2018-02-06 18:53
#3
https://gist.github.com/kirigaya ... 28ee0850e2c985c057d
把这个py下载下来,然后放到你要克隆的位置,执行命令:
  1. python3 git-clone.py dde-control-center dde-session-ui
Copy the Code


后面可以跟很多项目,这里举个栗子克隆dde-control-center和dde-session-ui
Reply View the author
Comments
jingle
2018-02-06 18:55
avatar
DebuggerX
deepin
2018-02-06 21:06
#4
Reply View the author
avatar
153******45
deepin
2018-02-06 22:38
#5
回家用电脑看看,手机访问不了github
Reply View the author
avatar
153******45
deepin
2018-02-07 00:59
#6
debuggerx 发表于 2018-2-6 13:06
https://gist.github.com/anonymous/48bda4a59976281e411273b42aaa283d

谢谢
      



Reply View the author