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