发布于 2020-07-15 05:51:44
CGit似乎没有任何官方或方便的API来导出/克隆其所有存储库。
你可以试试这些替代方案
curl -s http://git.suckless.org/ |
xml sel -N x="http://www.w3.org/1999/xhtml" -t -m "//x:a" -v '@title' -n |
grep . |
while read repo
do git clone git://git.suckless.org/$repo
done或者:
curl -s http://git.suckless.org/ | xml pyx | awk '$1 == "Atitle" { print $2 }'或者:
curl -s http://git.suckless.org/ | xml pyx | awk '$1 == "Atitle" { printf("git clone %s\n",$2) }' | s对于CGit列出的一页Git存储库,我怀疑这一工作:对于所有后续的Git存储库页面,您可能仍然必须重复这一工作。
https://stackoverflow.com/questions/60561562
复制相似问题