Get list of git repositories from command line.

2009-10-04 3 min read Linux

Earlier I had posted a small blog on teamgit. The problem still is that you have to manually go to the git.kernel.org page and get the list of the repo’s that you can download. How about a command line to get the same. Here’s one:

wget -O – http://git.kernel.org |grep &#8221;class=.list.&#8221; |grep -v title|awk -F&#8217;>&#8217; '{print $3}&#8217;|sed &#8217;s/<\/a//&#8217;

Output will be like this:<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/ghaskins/linux-2.6-hacks.git

<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/ghaskins/preempt-test.git
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/ghaskins/schedtop.git
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/glommer/linux-2.6-x86-pvops.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/bti.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/ddk.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/driver-core-2.6.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/lkn.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/patches.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/tty-2.6.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/usb-2.6.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/usbutils.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gregkh/usbview.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gud/chunkfs-tools.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gud/chunkfs.git <div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">linux/kernel/git/gud/fuse-chunkfs.git <p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/ghaskins/linux-2.6-hacks.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/ghaskins/preempt-test.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/ghaskins/schedtop.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/glommer/linux-2.6-x86-pvops.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/gregkh/bti.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/gregkh/ddk.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/gregkh/driver-core-2.6.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/gregkh/lkn.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/gregkh/patches.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/gregkh/tty-2.6.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/gregkh/usb-2.6.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/gregkh/usbutils.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/gregkh/usbview.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/gud/chunkfs-tools.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/gud/chunkfs.git

<p style="padding-left: 60px;"><span style="text-decoration: underline;"><span style="color: #0000ff;">linux/kernel/git/gud/fuse-chunkfs.git

<div style="padding-left: 60px;">

comments powered by Disqus