Get list of git repositories from command line.

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 \”class=.list.\” |grep -v title|awk -F\’>\’ \'{print $3}\’|sed \’s/<\\/a//\’

Output will be like this:

linux/kernel/git/ghaskins/linux-2.6-hacks.git
linux/kernel/git/ghaskins/preempt-test.git
linux/kernel/git/ghaskins/schedtop.git
linux/kernel/git/glommer/linux-2.6-x86-pvops.git
linux/kernel/git/gregkh/bti.git
linux/kernel/git/gregkh/ddk.git
linux/kernel/git/gregkh/driver-core-2.6.git
linux/kernel/git/gregkh/lkn.git
linux/kernel/git/gregkh/patches.git
linux/kernel/git/gregkh/tty-2.6.git
linux/kernel/git/gregkh/usb-2.6.git
linux/kernel/git/gregkh/usbutils.git
linux/kernel/git/gregkh/usbview.git
linux/kernel/git/gud/chunkfs-tools.git
linux/kernel/git/gud/chunkfs.git
linux/kernel/git/gud/fuse-chunkfs.git

linux/kernel/git/ghaskins/linux-2.6-hacks.git

linux/kernel/git/ghaskins/preempt-test.git

linux/kernel/git/ghaskins/schedtop.git

linux/kernel/git/glommer/linux-2.6-x86-pvops.git

linux/kernel/git/gregkh/bti.git

linux/kernel/git/gregkh/ddk.git

linux/kernel/git/gregkh/driver-core-2.6.git

linux/kernel/git/gregkh/lkn.git

linux/kernel/git/gregkh/patches.git

linux/kernel/git/gregkh/tty-2.6.git

linux/kernel/git/gregkh/usb-2.6.git

linux/kernel/git/gregkh/usbutils.git

linux/kernel/git/gregkh/usbview.git

linux/kernel/git/gud/chunkfs-tools.git

linux/kernel/git/gud/chunkfs.git

linux/kernel/git/gud/fuse-chunkfs.git