Get list of git repositories from command line.

2009-10-04 433 words 3 mins read

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;">


Tags: bash git kernel one liner repos

Related Articles:


author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

❮ Tag2Find – Tag Your Windows Files with Web-like Tags Play video in Fedora. ❯

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it